package com.lmiot.xyclick.Method;

import static com.lmiot.xyclick.Util.Constants.ActionEnum.Click_new_xy;
import static com.lmiot.xyclick.Util.Constants.ActionEnum.Click_one;
import static com.lmiot.xyclick.Util.Constants.TypeGroup.VIEW;

import android.app.Dialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Message;
import android.support.v4.view.InputDeviceCompat;
import android.text.Editable;
import android.text.Html;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.RadioButton;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.google.gson.Gson;
import com.lkx.liandianqinew.R;
import com.lmiot.xyclick.ActionDetailBean.DetailBean;
import com.lmiot.xyclick.App.MyApp;
import com.lmiot.xyclick.Auto.AutoUtils;
import com.lmiot.xyclick.Bean.AppBean;
import com.lmiot.xyclick.Bean.IfBean;
import com.lmiot.xyclick.Bean.IfBeanColor;
import com.lmiot.xyclick.Bean.InitFloatBean;
import com.lmiot.xyclick.Bean.ItemActionBean;
import com.lmiot.xyclick.Bean.SQL.ActionBean;
import com.lmiot.xyclick.Bean.SQL.AutoBean;
import com.lmiot.xyclick.Bean.SQL.AutoBeanSqlUtil;
import com.lmiot.xyclick.Bean.TextThreeBean;
import com.lmiot.xyclick.Bean.TextUserName;
import com.lmiot.xyclick.Method.ChoseActionIFUtil;
import com.lmiot.xyclick.Method.ChoseActionSecondUtil;
import com.lmiot.xyclick.Method.ParamUtils;
import com.lmiot.xyclick.Util.ApplicationInfoUtil;
import com.lmiot.xyclick.Util.Constants;
import com.lmiot.xyclick.Util.DataUtil;
import com.lmiot.xyclick.Util.EditDialogUtil;
import com.lmiot.xyclick.Util.FloatManager;
import com.lmiot.xyclick.Util.ImgUtil;
import com.lmiot.xyclick.Util.LayoutDialogUtil;
import com.lmiot.xyclick.Util.LogUtil;
import com.lmiot.xyclick.Util.MathUtils;
import com.lmiot.xyclick.Util.PhoneUtil;
import com.lmiot.xyclick.Util.TimeUtils;
import com.lmiot.xyclick.inteface.OnBasicListener;
import com.lmiot.xyclick.Util.Opcodes;
import com.xiaoyi.intentsdklibrary.Bean.PointBean;
import com.xiaoyi.intentsdklibrary.Bean.ViewBean;
import com.xiaoyi.intentsdklibrary.CheckUtil;
import com.xiaoyi.intentsdklibrary.SDK.Action.ActionAsSDK;
import com.xiaoyi.intentsdklibrary.SDK.Action.ActionNormalSDK;
import com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK;
import com.yhao.floatwindow.FloatUtil;
import com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK;
import com.youyi.yyviewsdklibrary.Dialog.util.KeyboardUtils;
import com.youyi.yyviewsdklibrary.Dialog.util.ToastUtil;
import com.youyi.yyviewsdklibrary.View.MySearchView;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import com.lmiot.xyclick.Util.Typography;

public class ChoseActionUtil {
    private static final ChoseActionUtil ourInstance = new ChoseActionUtil();
    private ActionAdapter mActionAdapter;
    private List<AppBean> mAppList;
    private Dialog mDialog;
    private NoteInfoViewSDK.FindViewType mFindViewTypeNow;
    private Handler mHandler;
    private Intent mIntent;
    private List<ItemActionBean> mItemActionBeanList;
    private NoteInfoViewSDK.NowActioType mNowActioType;
    private PointBean mPointBean;
    private List<PointBean> mPointBeanList;
    private String mSearchName;
    private List<String> mStringList;
    private Constants.TypeGroup mTypeGroupChose = Constants.TypeGroup.CLICK;
    Handler postHandler = new Handler();

    public static ChoseActionUtil getInstance() {
        return ourInstance;
    }

    private ChoseActionUtil() {
    }

    public void showChoseDialog() {
        Dialog dialog = this.mDialog;
        if (dialog != null && dialog.isShowing()) {
            this.mDialog.dismiss();
        }
        Dialog createBottomDailogNew = LayoutDialogUtil.createBottomDailogNew(MyApp.getContext(), R.layout.dialog_chose_action);
        this.mDialog = createBottomDailogNew;
        final LinearLayout linearLayout = (LinearLayout) createBottomDailogNew.findViewById(R.id.id_top_search_layout);
        final EditText editText = (EditText) this.mDialog.findViewById(R.id.id_top_search_edit);
        final ImageView imageView = (ImageView) this.mDialog.findViewById(R.id.id_top_search_clear);
        final RelativeLayout relativeLayout = (RelativeLayout) this.mDialog.findViewById(R.id.id_top_title_layout);
        ((ImageView) this.mDialog.findViewById(R.id.id_top_search_show)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass1 */

            public void onClick(View view) {
                editText.setText("");
                relativeLayout.setVisibility(View.GONE);
                linearLayout.setVisibility(View.VISIBLE);
                KeyboardUtils.showSoftInput(editText);
            }
        });
        ((ImageView) this.mDialog.findViewById(R.id.id_top_search_close)).setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass2 */

            public void onClick(View view) {
                editText.setText("");
                KeyboardUtils.hideSoftInput(editText);
                relativeLayout.setVisibility(View.VISIBLE);
                linearLayout.setVisibility(View.GONE);
            }
        });
        imageView.setOnClickListener(new View.OnClickListener() {
            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass3 */

            public void onClick(View view) {
                editText.setText("");
            }
        });
        editText.addTextChangedListener(new TextWatcher() {
            public void afterTextChanged(Editable editable) {
            }

            public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
            }

            public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                ChoseActionUtil.this.mSearchName = charSequence.toString();
                if (TextUtils.isEmpty(ChoseActionUtil.this.mSearchName)) {
                    imageView.setVisibility(View.GONE);
                    if (ChoseActionUtil.this.mActionAdapter != null) {
                        ChoseActionUtil.this.mActionAdapter.setData(ChoseActionUtil.this.mItemActionBeanList, null);
                        return;
                    }
                    return;
                }
                imageView.setVisibility(View.VISIBLE);
                ArrayList arrayList = new ArrayList();
                Constants.ActionEnum[] values = Constants.ActionEnum.values();
                for (Constants.ActionEnum actionEnum : values) {
                    Constants.ActionEnum  i4 = actionEnum;
                    if (!(i4 == Click_one || i4 == Click_new_xy)) {
                        String lowerCase = actionEnum.getName().toLowerCase();
                        String lowerCase2 = actionEnum.getDetail().toLowerCase();
                        String lowerCase3 = ChoseActionUtil.this.mSearchName.toLowerCase();
                        if (lowerCase.equals(lowerCase3) || lowerCase.contains(lowerCase3) || lowerCase2.equals(lowerCase3) || lowerCase2.contains(lowerCase3)) {
                            arrayList.add(ChoseActionUtil.this.getItemByEume(Constants.TypeGroup.CLICK, actionEnum));
                        }
                    }
                }
                if (ChoseActionUtil.this.mActionAdapter != null) {
                    ChoseActionUtil.this.mActionAdapter.setData(arrayList, ChoseActionUtil.this.mSearchName);
                }
            }
        });
        MySearchView mySearchView = (MySearchView) this.mDialog.findViewById(R.id.id_my_searchview);
        CheckBox checkBox = (CheckBox) this.mDialog.findViewById(R.id.id_auto_back);
        checkBox.setVisibility(View.VISIBLE);
        checkBox.setChecked(FloatUtil.getChangeData(MyApp.getContext()));
        checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                FloatUtil.setChangeData(MyApp.getContext(), z);
            }
        });
        TextView textView = (TextView) this.mDialog.findViewById(R.id.id_title);
        TextView textView2 = (TextView) this.mDialog.findViewById(R.id.id_empty);
        ListView listView = (ListView) this.mDialog.findViewById(R.id.id_listview);
        RadioButton radioButton = (RadioButton) this.mDialog.findViewById(R.id.radio_click);
        RadioButton radioButton2 = (RadioButton) this.mDialog.findViewById(R.id.radio_swipe);
        RadioButton radioButton3 = (RadioButton) this.mDialog.findViewById(R.id.radio_text);
        RadioButton radioButton4 = (RadioButton) this.mDialog.findViewById(R.id.radio_img);
        RadioButton radioButton5 = (RadioButton) this.mDialog.findViewById(R.id.radio_action);
        RadioButton radioButton6 = (RadioButton) this.mDialog.findViewById(R.id.radio_if);
        RadioButton radioButton7 = (RadioButton) this.mDialog.findViewById(R.id.radio_auto);
        RadioButton radioButton8 = (RadioButton) this.mDialog.findViewById(R.id.radio_system);
        RadioButton radioButton9 = (RadioButton) this.mDialog.findViewById(R.id.radio_app);
        RadioButton radioButton10 = (RadioButton) this.mDialog.findViewById(R.id.radio_tool);
        RadioButton radioButton11 = (RadioButton) this.mDialog.findViewById(R.id.radio_other);
        RadioButton radioButton12 = (RadioButton) this.mDialog.findViewById(R.id.radio_view);
        setRadioMethod(listView, textView2, mySearchView, radioButton, Constants.TypeGroup.CLICK);
        setRadioMethod(listView, textView2, mySearchView, radioButton2, Constants.TypeGroup.SWIPE);
        setRadioMethod(listView, textView2, mySearchView, radioButton3, Constants.TypeGroup.TEXT);
        setRadioMethod(listView, textView2, mySearchView, radioButton4, Constants.TypeGroup.IMG);
        setRadioMethod(listView, textView2, mySearchView, radioButton5, Constants.TypeGroup.Action);
        setRadioMethod(listView, textView2, mySearchView, radioButton6, Constants.TypeGroup.IF);
        setRadioMethod(listView, textView2, mySearchView, radioButton7, Constants.TypeGroup.AUTO);
        setRadioMethod(listView, textView2, mySearchView, radioButton8, Constants.TypeGroup.SYSTEM);
        setRadioMethod(listView, textView2, mySearchView, radioButton9, Constants.TypeGroup.APP);
        setRadioMethod(listView, textView2, mySearchView, radioButton10, Constants.TypeGroup.TOOL);
        setRadioMethod(listView, textView2, mySearchView, radioButton11, Constants.TypeGroup.OTHER);
        setRadioMethod(listView, textView2, mySearchView, radioButton12, VIEW);
        showListView(listView, textView2, mySearchView, this.mTypeGroupChose);
        LogUtil.d("ChoseActionUtil", "mTypeGroupChose:" + this.mTypeGroupChose);

        switch (mTypeGroupChose) {
            case CLICK:
                radioButton.setChecked(true);
                break;
            case SWIPE:
                radioButton2.setChecked(true);
                break;
            case TEXT:
                radioButton3.setChecked(true);
                break;
            case IMG:
                radioButton4.setChecked(true);
                break;
            case Action:
                radioButton5.setChecked(true);
                break;
            case IF:
                radioButton6.setChecked(true);
                break;
            case AUTO:
                radioButton7.setChecked(true);
                break;
            case SYSTEM:
                radioButton8.setChecked(true);
                break;
            case APP:
                radioButton9.setChecked(true);
                break;
            case TOOL:
                radioButton10.setChecked(true);
                break;
            case OTHER:
                radioButton11.setChecked(true);
                break;
            case VIEW:
                radioButton12.setChecked(true);
                break;
        }
        ((TextView) this.mDialog.findViewById(R.id.id_save)).setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                AutoUtils.resumeAddActivity(MyApp.getContext());
                if (ChoseActionUtil.this.mDialog != null && ChoseActionUtil.this.mDialog.isShowing()) {
                    ChoseActionUtil.this.mDialog.dismiss();
                }
            }
        });
    }

    /**
     * lkx_debug_todo
     *
     * @param listView
     * @param textView
     * @param mySearchView
     * @param radioButton
     * @param typeGroup
     */
//    /* access modifiers changed from: package-private */
//    /* renamed from: com.lmiot.xyclick.Method.ChoseActionUtil$106  reason: invalid class name */
//    public static /* synthetic */ class AnonymousClass106 {
//        static final /* synthetic */ int[] $SwitchMap$com$lmiot$xyclick$Util$Constants$ActionEnum;
//        static final /* synthetic */ int[] $SwitchMap$com$lmiot$xyclick$Util$Constants$TypeGroup;
//
//        /* JADX WARNING: Can't wrap try/catch for region: R(31:0|(2:1|2)|3|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|29|30|31|32|34) */
//        /* JADX WARNING: Can't wrap try/catch for region: R(32:0|1|2|3|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|29|30|31|32|34) */
//        /* JADX WARNING: Code restructure failed: missing block: B:35:?, code lost:
//            return;
//         */
//        /* JADX WARNING: Failed to process nested try/catch */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:11:0x0033 */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:13:0x003e */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:15:0x0049 */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:17:0x0054 */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:19:0x0060 */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:21:0x006c */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:23:0x0078 */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:25:0x0084 */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:31:0x00a1 */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:7:0x001d */
//        /* JADX WARNING: Missing exception handler attribute for start block: B:9:0x0028 */
//        static {
//            /*
//            // Method dump skipped, instructions count: 172
//            */
//            throw new UnsupportedOperationException("Method not decompiled: com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass106.<clinit>():void");
//        }
//    }
    private void setRadioMethod(final ListView listView, final TextView textView, final MySearchView mySearchView, RadioButton radioButton, final Constants.TypeGroup typeGroup) {
        this.mSearchName = "";
        radioButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
                if (!z) {
                    return;
                }
                if (typeGroup != VIEW) {
                    ChoseActionUtil.this.showListView(listView, textView, mySearchView, typeGroup);
                    return;
                }
                if (CheckUtil.checkOp(MyApp.getContext())) {
                    ActionAsSDK.getInstance().init(MyApp.getContext());
                } else {
                    ActionNormalSDK.getInstance().gotoFloatPermissionSetting(MyApp.getContext());
                }
                if (!DataUtil.getShowViewTip(MyApp.getContext())) {
                    EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "控件操作说明", "原理：直接拿到软件的控件ID，然后进行模拟操作。举个简单例子：之前的点击是直接拿到x和y坐标，然后点击。而使用控件操作，则是直接点击目标控件。\n\n\n优点：\n\n1.编辑和执行时不再受手机分辨率影响；\n\n2.完美解决自动化分享时的适配性问题；\n\n3.可以直接挑选不同属性的控件进行操作；\n\n4.目标软件升级导致ID改变的需要重新编辑下；\n", 0, new EditDialogUtil.setOnSureListener() {
                        /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass7.AnonymousClass1 */

                        @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                        public void sureClick(boolean z) {
                            DataUtil.setShowViewTip(MyApp.getContext(), true);
                            ChoseActionUtil.this.showListView(listView, textView, mySearchView, typeGroup);
                        }
                    }, true);
                } else {
                    ChoseActionUtil.this.showListView(listView, textView, mySearchView, typeGroup);
                }
            }
        });
    }

    /* access modifiers changed from: private */
    /* access modifiers changed from: public */
    private void showListView(ListView listView, TextView textView, MySearchView mySearchView, Constants.TypeGroup typeGroup) {
        this.mTypeGroupChose = typeGroup;
        this.mItemActionBeanList = new ArrayList();
        if (typeGroup == Constants.TypeGroup.APP || typeGroup == Constants.TypeGroup.AUTO) {
            mySearchView.setVisibility(View.VISIBLE);
            mySearchView.setText("");
        } else {
            mySearchView.setVisibility(View.GONE);
        }
        switch (typeGroup) {
            case CLICK:
                clickActionList();
                break;
            case SWIPE:
                swipeActionList();
                break;
            case TEXT:
                textActionList();
                break;
            case IMG:
                imgActionList();
                break;
            case Action:
                actionActionList();
                break;
            case IF:
                ifActionList();
                break;
            case AUTO:
                textView.setText("请先添加一个自动化！");
                setFind(mySearchView);
                autoActonList();
                break;
            case SYSTEM:
                systemActionList();
                break;
            case APP:
                textView.setText("应用加载中,请稍候……");
                setFind(mySearchView);
                appActionList(listView, textView);
                break;
            case TOOL:
                toolActionList();
                break;
            case OTHER:
                otherActonList();
                break;
            case VIEW:
                viewActonList();
                break;
        }
        showListView(listView, textView);
    }

    private void viewActonList() {
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_ALL));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_CLICK));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_CLICK_HAND));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_CLICK_N));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_W_A_C));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_W_ACTIVITY));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_CLICK_ALL));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_CLICK_ALL_HAND));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_LONG_CLICK));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_INPUT));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_CHECKED));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_UNCHECKED));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_LISTVIEW));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_ID));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_ID_HAND));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_ID_WAIT));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_ID_WAIT_HAND));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_TEXT));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_TEXT_WAIT));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_DES));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_CHECK));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_PACKNAME));
        this.mItemActionBeanList.add(getItemByEume(VIEW, Constants.ActionEnum.VIEW_FIND_ACTIVITY));
    }

    private void otherActonList() {
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_stop));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_pause));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_reusm));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_random));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_phone_voice));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_phone_speak));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_phone_vibrate));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_phone_shake));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_phone_alarm));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.OTHER, Constants.ActionEnum.Other_empty_action));
    }

    private void toolActionList() {
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_wx_sao));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_wx_fu));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_wx_xiao));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_zfb_sao));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_zfb_shou));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_zfb_fu));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_zxing));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_qq));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_email));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_web));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_url_scheme));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_shortcut));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_fulll_text));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_rect_text));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_call));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_msg));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_media_play));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_media_pause));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_media_pre));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_media_next));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_media_volume_up));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TOOL, Constants.ActionEnum.Tool_media_volume_down));
    }

    /* access modifiers changed from: private */
    /* access modifiers changed from: public */
    private void showListView(ListView listView, TextView textView) {
        if (this.mItemActionBeanList.size() == 0) {
            textView.setVisibility(View.VISIBLE);
            listView.setVisibility(View.GONE);
        } else {
            textView.setVisibility(View.GONE);
            listView.setVisibility(View.VISIBLE);
        }
        ActionAdapter actionAdapter = new ActionAdapter(this.mItemActionBeanList);
        this.mActionAdapter = actionAdapter;
        listView.setAdapter((ListAdapter) actionAdapter);
    }

    private void setFind(MySearchView mySearchView) {
        mySearchView.setOnTextChangeListener(new MySearchView.OnTextChangeListener() {
            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass8 */

            @Override // com.youyi.yyviewsdklibrary.View.MySearchView.OnTextChangeListener
            public void onclick(String str) {
            }

            @Override // com.youyi.yyviewsdklibrary.View.MySearchView.OnTextChangeListener
            public void change(String str) {
                ChoseActionUtil.this.mSearchName = str;
                if (!TextUtils.isEmpty(ChoseActionUtil.this.mSearchName)) {
                    ArrayList arrayList = new ArrayList();
                    if (ChoseActionUtil.this.mItemActionBeanList != null && ChoseActionUtil.this.mItemActionBeanList.size() > 0) {
                        for (ItemActionBean itemActionBean : ChoseActionUtil.this.mItemActionBeanList) {
                            if (itemActionBean.getActionName().contains(ChoseActionUtil.this.mSearchName)) {
                                arrayList.add(itemActionBean);
                            }
                        }
                        if (ChoseActionUtil.this.mActionAdapter != null) {
                            ChoseActionUtil.this.mActionAdapter.setData(arrayList, ChoseActionUtil.this.mSearchName);
                        }
                    }
                } else if (ChoseActionUtil.this.mActionAdapter != null) {
                    ChoseActionUtil.this.mActionAdapter.setData(ChoseActionUtil.this.mItemActionBeanList, null);
                }
            }
        });
    }

    private void appActionList(final ListView listView, final TextView textView) {
        this.mAppList = new ArrayList();
        this.mHandler = new Handler() {
            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass9 */

            public void handleMessage(Message message) {
                if (message.what == 5253 && ChoseActionUtil.this.mTypeGroupChose == Constants.TypeGroup.APP) {
                    ChoseActionUtil.this.mItemActionBeanList.clear();
                    if (ChoseActionUtil.this.mAppList.size() > 0) {
                        for (AppBean appBean : ChoseActionUtil.this.mAppList) {
                            ChoseActionUtil.this.mItemActionBeanList.add(new ItemActionBean(Constants.TypeGroup.APP, Constants.ACTION_TYPE_OPEN_APP_NEW, appBean.getAppIcon(), 0, appBean.getAppName(), appBean.getPackageName(), false));
                            ChoseActionUtil.this.showListView(listView, textView);
                        }
                    }
                }
            }
        };
        new Thread() {
            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass10 */

            public void run() {
                ChoseActionUtil.this.mAppList = ApplicationInfoUtil.getAllApp(MyApp.getContext());
                LogUtil.d("ChoseActionUtil", "mAppList.size():" + ChoseActionUtil.this.mAppList.size());
                ChoseActionUtil.this.mHandler.sendEmptyMessage(5253);
            }
        }.start();
    }

    private void systemActionList() {
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_wifi_on));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_wifi_off));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_blue_on));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_blue_off));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_led_on));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_led_off));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_notic_open));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_notic_close));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_set_volume));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_set_screen));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_queit));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_vibrate));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_stander));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_screen_on));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_goto_setting));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_goto_tif));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_goto_wifi));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_goto_app));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_goto_as));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_goto_fly));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SYSTEM, Constants.ActionEnum.System_goto_dev));
    }

    private void autoActonList() {
        List<AutoBean> searchAll = AutoBeanSqlUtil.getInstance().searchAll();
        if (searchAll.size() > 0) {
            for (AutoBean autoBean : searchAll) {
                this.mItemActionBeanList.add(new ItemActionBean(Constants.TypeGroup.AUTO, Constants.ACTION_TYPE_DO_INSIGN_AUTO, null, R.drawable.play_auto_blue, autoBean.getAutoName(), autoBean.getAutoID(), true));
            }
        }
    }

    private void ifActionList() {
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_text_full));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_wait_text));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_wait_img));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_text_rect));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_text_full_ocr));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_text_rect_ocr));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_img_full));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_img_rect));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_num_dot));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_num_android));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_num));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_time));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_color_point));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_color_screen));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_color_more));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_color_rect));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_str_length));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_str_contain));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_str_start));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_str_end));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_for));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_for_plus));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_for_break));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_while));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_wait));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_goto));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_plus_goto));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IF, Constants.ActionEnum.If_logic));
    }

    private void actionActionList() {
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_back));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_home));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_shortcut_sys));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_lock));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_power));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_recent));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_notic));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_remote_run));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_remote_stop));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.Action, Constants.ActionEnum.Action_list));
    }

    private void imgActionList() {
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IMG, Constants.ActionEnum.Img_pick));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IMG, Constants.ActionEnum.Img_delay));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IMG, Constants.ActionEnum.Img_click));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IMG, Constants.ActionEnum.Img_click_all));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IMG, Constants.ActionEnum.Img_click_n));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IMG, Constants.ActionEnum.Img_click_n_rect));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IMG, Constants.ActionEnum.Img_press));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IMG, Constants.ActionEnum.Img_drap));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.IMG, Constants.ActionEnum.Img_click_offset));
    }

    private void textActionList() {
        if (PhoneUtil.getAPPVersion().startsWith("JH")) {
            this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_input_library_list_three));
        }
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_click_one));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_click_twait));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_click_rnum));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_click_last));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_click_one_all));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_click_ocr));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_press));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_input_xy));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_input_xy_by_http));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_click_rect));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_click_ocr_rect));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_copy_screen));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_copy_rect));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_input_form));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_input_library));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_input_library_list));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_input_library_list_username));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_input_max_min));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_input_past));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Text_click_offset));
    }

    private void swipeActionList() {
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_left));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_right));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_up));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_down));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_to));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_plus));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_drap));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_pathlist));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_bigger));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.SWIPE, Constants.ActionEnum.Swipe_smaller));
    }

    private void clickActionList() {
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.CLICK, Click_one));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Click_new_xy));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.TEXT, Constants.ActionEnum.Click_new_percent));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.CLICK, Constants.ActionEnum.Click_double));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.CLICK, Constants.ActionEnum.click_n_times));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.CLICK, Constants.ActionEnum.Click_rect_n_times));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.CLICK, Constants.ActionEnum.Click_press));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.CLICK, Constants.ActionEnum.Click_press_n_times));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.CLICK, Constants.ActionEnum.Click_press_n_times_ms));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.CLICK, Constants.ActionEnum.Click_points));
        this.mItemActionBeanList.add(getItemByEume(Constants.TypeGroup.CLICK, Constants.ActionEnum.Click_press_points));
    }

    public ItemActionBean getItemByEume(Constants.TypeGroup typeGroup, Constants.ActionEnum actionEnum) {
        return new ItemActionBean(typeGroup, actionEnum.getType(), null, actionEnum.getImg(), actionEnum.getName(), actionEnum.getDetail(), actionEnum.isVip());
    }

    /* access modifiers changed from: private */
    public class ActionAdapter extends BaseAdapter {
        List<ItemActionBean> list;

        public Object getItem(int i) {
            return null;
        }

        public long getItemId(int i) {
            return 0;
        }

        public ActionAdapter(List<ItemActionBean> list2) {
            this.list = list2;
        }

        public int getCount() {
            List<ItemActionBean> list2 = this.list;
            if (list2 == null) {
                return 0;
            }
            return list2.size();
        }

        public View getView(int i, View view, ViewGroup viewGroup) {
            View inflate = View.inflate(MyApp.getContext(), R.layout.item_chose_action, null);
            ImageView imageView = (ImageView) inflate.findViewById(R.id.id_icon);
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.id_img);
            TextView textView = (TextView) inflate.findViewById(R.id.id_name);
            TextView textView2 = (TextView) inflate.findViewById(R.id.id_detail);
            final ItemActionBean itemActionBean = this.list.get(i);
            Drawable appIcon = itemActionBean.getAppIcon();
            if (appIcon == null) {
                imageView.setVisibility(View.GONE);
                imageView2.setVisibility(View.VISIBLE);
                Glide.with(MyApp.getContext()).load(Integer.valueOf(itemActionBean.getActionImg())).into(imageView2);
            } else {
                imageView.setVisibility(View.VISIBLE);
                imageView2.setVisibility(View.GONE);
                imageView.setImageDrawable(appIcon);
            }
            if (TextUtils.isEmpty(ChoseActionUtil.this.mSearchName)) {
                textView.setText(itemActionBean.getActionName());
            } else {
                String actionName = itemActionBean.getActionName();
                String str = ChoseActionUtil.this.mSearchName;
                textView.setText(Html.fromHtml(actionName.replace(str, "<font color='#FF0000'>" + ChoseActionUtil.this.mSearchName + "</font>")));
            }
            if (TextUtils.isEmpty(itemActionBean.getActionDetail())) {
                textView2.setVisibility(View.GONE);
            } else {
                textView2.setVisibility(View.VISIBLE);
                textView2.setText(itemActionBean.getActionDetail());
            }
            inflate.setOnClickListener(new View.OnClickListener() {
                /* class com.lmiot.xyclick.Method.ChoseActionUtil.ActionAdapter.AnonymousClass1 */

                public void onClick(View view) {
                    if (!itemActionBean.isVip() || DataUtil.getVip(MyApp.getContext())) {
                        ChoseActionUtil.this.clickAction(itemActionBean);
                        return;
                    }
                    ChoseActionUtil.this.mDialog.dismiss();
                    LayoutDialogUtil.checkVIP(MyApp.getContext());
                }
            });
            return inflate;
        }

        public void setData(List<ItemActionBean> list2, String str) {
            this.list = list2;
            ChoseActionUtil.this.mSearchName = str;
            notifyDataSetChanged();
        }
    }

    /* access modifiers changed from: private */
    /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */
    /* access modifiers changed from: public */
    private void clickAction(ItemActionBean itemActionBean) {
        char c;
        char c2;
        char c3;
        final ActionBean actionBean = new ActionBean();
        actionBean.setActionID(TimeUtils.createActionID());
        actionBean.setActionName(itemActionBean.getActionName());
        actionBean.setActionType(itemActionBean.getActionType());
        actionBean.setSortNum(AutoUtils.mActionBeanList.size());
        actionBean.setCreateTime(TimeUtils.getCurrentTime());
        actionBean.setAutoID(AutoUtils.mAutoID);
        actionBean.setEnable(true);
        actionBean.setDelay(getDelayTime(1));
        final DetailBean detailBean = new DetailBean();
        this.mPointBeanList = new ArrayList();
        this.mStringList = new ArrayList();
        detailBean.setType(itemActionBean.getActionType());
        if (this.mHandler == null) {
            this.mHandler = new Handler();
        }
        String actionType = itemActionBean.getActionType();
        actionType.hashCode();
        switch (actionType.hashCode()) {
            case -2124837132:
                if (actionType.equals(Constants.ACTION_TYPE_GPS_CLOSE)) {
                    c = 0;
                    break;
                }
                c = 65535;
                break;
            case -2099337864:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SHORTCUT_SYS)) {
                    c = 1;
                    break;
                }
                c = 65535;
                break;
            case -2065175585:
                if (actionType.equals(Constants.ACTION_TYPE_GO_AS_SETTING)) {
                    c = 2;
                    break;
                }
                c = 65535;
                break;
            case -2017424103:
                if (actionType.equals(Constants.ACTION_TYPE_SYSTEM_BLUETOOTH_OFF)) {
                    c = 3;
                    break;
                }
                c = 65535;
                break;
            case -1963601923:
                if (actionType.equals(Constants.ACTION_TYPE_FLY_CLOSE)) {
                    c = 4;
                    break;
                }
                c = 65535;
                break;
            case -1962927546:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_ONE_ALL)) {
                    c = 5;
                    break;
                }
                c = 65535;
                break;
            case -1962914365:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_OCR)) {
                    c = 6;
                    break;
                }
                c = 65535;
                break;
            case -1815477287:
                if (actionType.equals(Constants.ACTION_TYPE_IF_BIG)) {
                    c = 7;
                    break;
                }
                c = 65535;
                break;
            case -1815473246:
                if (actionType.equals(Constants.ACTION_TYPE_IF_FOR)) {
                    c = '\b';
                    break;
                }
                c = 65535;
                break;
            case -1815463837:
                if (actionType.equals(Constants.ACTION_TYPE_IF_IMG)) {
                    c = '\t';
                    break;
                }
                c = 65535;
                break;
            case -1806167109:
                if (actionType.equals(Constants.ACTION_TYPE_IF_STR_LENGTH)) {
                    c = '\n';
                    break;
                }
                c = 65535;
                break;
            case -1803988169:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TIMES)) {
                    c = 11;
                    break;
                }
                c = 65535;
                break;
            case -1782931020:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_MEDIA_PAUSE)) {
                    c = '\f';
                    break;
                }
                c = 65535;
                break;
            case -1763891370:
                if (actionType.equals(Constants.ACTION_TYPE_COPY_SCREEN_TEXT)) {
                    c = '\r';
                    break;
                }
                c = 65535;
                break;
            case -1760770718:
                if (actionType.equals(Constants.ACTION_TYPE_SYSTEM_LED_ON)) {
                    c = 14;
                    break;
                }
                c = 65535;
                break;
            case -1755032486:
                if (actionType.equals(Constants.ACTION_TYPE_SYSTEM_WIFI_ON)) {
                    c = 15;
                    break;
                }
                c = 65535;
                break;
            case -1748612358:
                if (actionType.equals(Constants.ACTION_TYPE_RANDOM_INPUT_TEXT)) {
                    c = 16;
                    break;
                }
                c = 65535;
                break;
            case -1747771512:
                if (actionType.equals(Constants.ACTION_CLICK_PERCENT_XY)) {
                    c = 17;
                    break;
                }
                c = 65535;
                break;
            case -1722877366:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SHOW_NOTIC)) {
                    c = 18;
                    break;
                }
                c = 65535;
                break;
            case -1720712411:
                if (actionType.equals(Constants.ACTION_TYPE_RANDOM_DELAY_TIME)) {
                    c = 19;
                    break;
                }
                c = 65535;
                break;
            case -1688822809:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID_HAND)) {
                    c = 20;
                    break;
                }
                c = 65535;
                break;
            case -1688461147:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_TEXT)) {
                    c = 21;
                    break;
                }
                c = 65535;
                break;
            case -1688376083:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID_WAIT)) {
                    c = 22;
                    break;
                }
                c = 65535;
                break;
            case -1654991382:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT)) {
                    c = 23;
                    break;
                }
                c = 65535;
                break;
            case -1614455551:
                if (actionType.equals(Constants.ACTION_TYPE_IF_PLUS_GOTO)) {
                    c = 24;
                    break;
                }
                c = 65535;
                break;
            case -1573253640:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_LISTVIEW)) {
                    c = 25;
                    break;
                }
                c = 65535;
                break;
            case -1555612659:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CHECK)) {
                    c = 26;
                    break;
                }
                c = 65535;
                break;
            case -1554995982:
                if (actionType.equals(Constants.ACTION_TYPE_REMOTE_RUN)) {
                    c = 27;
                    break;
                }
                c = 65535;
                break;
            case -1541429506:
                if (actionType.equals(Constants.ACTION_TYPE_GO_SYSTEMSETTING)) {
                    c = 28;
                    break;
                }
                c = 65535;
                break;
            case -1528846928:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_INPUT)) {
                    c = 29;
                    break;
                }
                c = 65535;
                break;
            case -1465745048:
                if (actionType.equals(Constants.ACTION_TYPE_IF_BIG_ANDROID)) {
                    c = 30;
                    break;
                }
                c = 65535;
                break;
            case -1431420264:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_PATHLISt)) {
                    c = 31;
                    break;
                }
                c = 65535;
                break;
            case -1350871331:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_DRAP_TO)) {
                    c = ' ';
                    break;
                }
                c = 65535;
                break;
            case -1282707776:
                if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT_IMG)) {
                    c = '!';
                    break;
                }
                c = 65535;
                break;
            case -1210206765:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_LIST)) {
                    c = '\"';
                    break;
                }
                c = 65535;
                break;
            case -1184644365:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_ALL_HAND)) {
                    c = '#';
                    break;
                }
                c = 65535;
                break;
            case -1177457595:
                if (actionType.equals(Constants.ACTION_TYPE_GO_DEVELOP_SETTING)) {
                    c = '$';
                    break;
                }
                c = 65535;
                break;
            case -1172618801:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_RECT)) {
                    c = '%';
                    break;
                }
                c = 65535;
                break;
            case -1160082179:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_SCENE_QUEIT)) {
                    c = '&';
                    break;
                }
                c = 65535;
                break;
            case -1160002021:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_BY_HTTP)) {
                    c = '\'';
                    break;
                }
                c = 65535;
                break;
            case -1159719049:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_RECT)) {
                    c = '(';
                    break;
                }
                c = 65535;
                break;
            case -1132382251:
                if (actionType.equals(Constants.ACTION_TYPE_CLICK_TEXT_OFFSET_RECT)) {
                    c = ')';
                    break;
                }
                c = 65535;
                break;
            case -1131150297:
                if (actionType.equals(Constants.ACTION_TYPE_RES_IMG_DELAY)) {
                    c = '*';
                    break;
                }
                c = 65535;
                break;
            case -1108914736:
                if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT_TEXT)) {
                    c = '+';
                    break;
                }
                c = 65535;
                break;
            case -1070378249:
                if (actionType.equals(Constants.ACTION_TYPE_RANDOM_INPUT_MAX_MIN)) {
                    c = ',';
                    break;
                }
                c = 65535;
                break;
            case -1066784745:
                if (actionType.equals(Constants.ACTION_TYPE_IF_FOR_PLUS)) {
                    c = '-';
                    break;
                }
                c = 65535;
                break;
            case -1044171476:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_SEND_EMAIL)) {
                    c = '.';
                    break;
                }
                c = 65535;
                break;
            case -960206213:
                if (actionType.equals(Constants.ACTION_TYPE_REMOTE_STOP)) {
                    c = '/';
                    break;
                }
                c = 65535;
                break;
            case -935451011:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_Points)) {
                    c = '0';
                    break;
                }
                c = 65535;
                break;
            case -928499534:
                if (actionType.equals(Constants.ACTION_TYPE_SCREEN_ON)) {
                    c = '1';
                    break;
                }
                c = 65535;
                break;
            case -921545414:
                if (actionType.equals(Constants.ACTION_TYPE_PAST_TEXT)) {
                    c = '2';
                    break;
                }
                c = 65535;
                break;
            case -915840004:
                if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR)) {
                    c = '3';
                    break;
                }
                c = 65535;
                break;
            case -907533321:
                if (actionType.equals(Constants.ACTION_TYPE_IF_LOGIC)) {
                    c = '4';
                    break;
                }
                c = 65535;
                break;
            case -897581110:
                if (actionType.equals(Constants.ACTION_TYPE_IF_WHILE)) {
                    c = '5';
                    break;
                }
                c = 65535;
                break;
            case -887424920:
                if (actionType.equals(Constants.ACTION_TYPE_IF_BIG_AND_DOT)) {
                    c = '6';
                    break;
                }
                c = 65535;
                break;
            case -863936354:
                if (actionType.equals(Constants.ACTION_TYPE_LIST_INPUT_THREE)) {
                    c = '7';
                    break;
                }
                c = 65535;
                break;
            case -833024575:
                if (actionType.equals(Constants.ACTION_TYPE_RES_DRAP_CLICK_IMG)) {
                    c = '8';
                    break;
                }
                c = 65535;
                break;
            case -818317168:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_CHECKED)) {
                    c = '9';
                    break;
                }
                c = 65535;
                break;
            case -815136703:
                if (actionType.equals(Constants.ACTION_TYPE_OPEN_APP_NEW)) {
                    c = ':';
                    break;
                }
                c = 65535;
                break;
            case -776535233:
                if (actionType.equals(Constants.ACTION_TYPE_LIST_INPUT_TEXT)) {
                    c = ';';
                    break;
                }
                c = 65535;
                break;
            case -772684081:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_A_TO_B)) {
                    c = '<';
                    break;
                }
                c = 65535;
                break;
            case -772684049:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_UP)) {
                    c = '=';
                    break;
                }
                c = 65535;
                break;
            case -747218534:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_DES)) {
                    c = '>';
                    break;
                }
                c = 65535;
                break;
            case -741443391:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_GET_RECT_TECT)) {
                    c = '?';
                    break;
                }
                c = 65535;
                break;
            case -735797586:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_RECT_OCR)) {
                    c = '@';
                    break;
                }
                c = 65535;
                break;
            case -720712225:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_RECT)) {
                    c = 'A';
                    break;
                }
                c = 65535;
                break;
            case -702563113:
                if (actionType.equals(Constants.ACTION_CLICK_XY)) {
                    c = 'B';
                    break;
                }
                c = 65535;
                break;
            case -667301681:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_TEXT_WAIT)) {
                    c = 'C';
                    break;
                }
                c = 65535;
                break;
            case -666784441:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TEXT)) {
                    c = 'D';
                    break;
                }
                c = 65535;
                break;
            case -666741787:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TIMES)) {
                    c = 'E';
                    break;
                }
                c = 65535;
                break;
            case -635002049:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_ALL)) {
                    c = 'F';
                    break;
                }
                c = 65535;
                break;
            case -605553427:
                if (actionType.equals(Constants.ACTION_TYPE_IF_STR_START)) {
                    c = 'G';
                    break;
                }
                c = 65535;
                break;
            case -604104575:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID_WAIT_HAND)) {
                    c = 'H';
                    break;
                }
                c = 65535;
                break;
            case -581264932:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TEXT_RECT)) {
                    c = 'I';
                    break;
                }
                c = 65535;
                break;
            case -557756589:
                if (actionType.equals(Constants.ACTION_TYPE_ACLIST)) {
                    c = 'J';
                    break;
                }
                c = 65535;
                break;
            case -488247915:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK)) {
                    c = 'K';
                    break;
                }
                c = 65535;
                break;
            case -475778232:
                if (actionType.equals(Constants.ACTION_TYPE_EMPTY_ACTION)) {
                    c = 'L';
                    break;
                }
                c = 65535;
                break;
            case -445065814:
                if (actionType.equals(Constants.ACTION_TYPE_IF_GOTO)) {
                    c = 'M';
                    break;
                }
                c = 65535;
                break;
            case -444688012:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT)) {
                    c = 'N';
                    break;
                }
                c = 65535;
                break;
            case -444684524:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TIME)) {
                    c = 'O';
                    break;
                }
                c = 65535;
                break;
            case -444602948:
                if (actionType.equals(Constants.ACTION_TYPE_IF_WAIT)) {
                    c = 'P';
                    break;
                }
                c = 65535;
                break;
            case -416479067:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_CALL)) {
                    c = 'Q';
                    break;
                }
                c = 65535;
                break;
            case -368281682:
                if (actionType.equals(Constants.ACTION_TYPE_CLICK_TEXT_OFFSET)) {
                    c = 'R';
                    break;
                }
                c = 65535;
                break;
            case -287244634:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_OPEN_WEB)) {
                    c = 'S';
                    break;
                }
                c = 65535;
                break;
            case -240233156:
                if (actionType.equals(Constants.ACTION_TYPE_RES_INPUT_TEXT_POSITION)) {
                    c = 'T';
                    break;
                }
                c = 65535;
                break;
            case -213492788:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_SCENE_STANDARD)) {
                    c = 'U';
                    break;
                }
                c = 65535;
                break;
            case -210978294:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_WX_SAO)) {
                    c = 'V';
                    break;
                }
                c = 65535;
                break;
            case -141643905:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_ZFB_FU)) {
                    c = 'W';
                    break;
                }
                c = 65535;
                break;
            case -125669311:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_RING)) {
                    c = 'X';
                    break;
                }
                c = 65535;
                break;
            case -125440243:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_SHORTCUT)) {
                    c = 'Y';
                    break;
                }
                c = 65535;
                break;
            case -121892942:
                if (actionType.equals(Constants.ACTION_TYPE_GO_APP_SETTING)) {
                    c = 'Z';
                    break;
                }
                c = 65535;
                break;
            case -110471711:
                if (actionType.equals(Constants.ACTION_TYPE_GO_WIFI_SETTING)) {
                    c = '[';
                    break;
                }
                c = 65535;
                break;
            case -95981775:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_ZFB_SAO)) {
                    c = '\\';
                    break;
                }
                c = 65535;
                break;
            case -31627645:
                if (actionType.equals(Constants.ACTION_TYPE_RES_DOUBLE_CLICK)) {
                    c = ']';
                    break;
                }
                c = 65535;
                break;
            case -6806138:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_WX_FU)) {
                    c = '^';
                    break;
                }
                c = 65535;
                break;
            case -4025731:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_ZXING)) {
                    c = '_';
                    break;
                }
                c = 65535;
                break;
            case 4088742:
                if (actionType.equals(Constants.ACTION_TYPE_CLICK_IMG_OFFSET)) {
                    c = '`';
                    break;
                }
                c = 65535;
                break;
            case 80977781:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_MEDIA_NEXT)) {
                    c = 'a';
                    break;
                }
                c = 65535;
                break;
            case 81043382:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_MEDIA_PLAY)) {
                    c = 'b';
                    break;
                }
                c = 65535;
                break;
            case 94525657:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_BIGGER)) {
                    c = 'c';
                    break;
                }
                c = 65535;
                break;
            case 153596125:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK)) {
                    c = 'd';
                    break;
                }
                c = 65535;
                break;
            case 165987693:
                if (actionType.equals(Constants.ACTION_TYPE_NFC_OPEN)) {
                    c = 'e';
                    break;
                }
                c = 65535;
                break;
            case 207152864:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_OCR_RECT)) {
                    c = 'f';
                    break;
                }
                c = 65535;
                break;
            case 236872539:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_WAIT_AND_CLICK_ID)) {
                    c = 'g';
                    break;
                }
                c = 65535;
                break;
            case 250989520:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_PACKNAME)) {
                    c = 'h';
                    break;
                }
                c = 65535;
                break;
            case 279709153:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_MEDIA_PRE)) {
                    c = 'i';
                    break;
                }
                c = 65535;
                break;
            case 301325639:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_LONG_CLICK)) {
                    c = 'j';
                    break;
                }
                c = 65535;
                break;
            case 305611769:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_MEDIA_VOLUME_UP)) {
                    c = 'k';
                    break;
                }
                c = 65535;
                break;
            case 309637413:
                if (actionType.equals(Constants.ACTION_TYPE_AUTO_LIST)) {
                    c = 'l';
                    break;
                }
                c = 65535;
                break;
            case 383596128:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_ALARM)) {
                    c = 'm';
                    break;
                }
                c = 65535;
                break;
            case 400341985:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_SPEAK)) {
                    c = 'n';
                    break;
                }
                c = 65535;
                break;
            case 404071014:
                if (actionType.equals(Constants.ACTION_TYPE_GO_FLY_SETTING)) {
                    c = 'o';
                    break;
                }
                c = 65535;
                break;
            case 466857327:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES_RECT)) {
                    c = 'p';
                    break;
                }
                c = 65535;
                break;
            case 471723478:
                if (actionType.equals(Constants.ACTION_TYPE_LIST_INPUT_TEXT_USERNAME)) {
                    c = 'q';
                    break;
                }
                c = 65535;
                break;
            case 479467510:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_DOWN)) {
                    c = 'r';
                    break;
                }
                c = 65535;
                break;
            case 479695707:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_LEFT)) {
                    c = 's';
                    break;
                }
                c = 65535;
                break;
            case 479822062:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_PLUS)) {
                    c = 't';
                    break;
                }
                c = 65535;
                break;
            case 483822651:
                if (actionType.equals(Constants.ACTION_TYPE_RES_RECENT)) {
                    c = 'u';
                    break;
                }
                c = 65535;
                break;
            case 484400777:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_IMG)) {
                    c = 'v';
                    break;
                }
                c = 65535;
                break;
            case 500571023:
                if (actionType.equals(Constants.ACTION_TYPE_DO_INSIGN_AUTO)) {
                    c = 'w';
                    break;
                }
                c = 65535;
                break;
            case 500581063:
                if (actionType.equals(Constants.ACTION_TYPE_RES_BACK)) {
                    c = 'x';
                    break;
                }
                c = 65535;
                break;
            case 500773567:
                if (actionType.equals(Constants.ACTION_TYPE_RES_HOME)) {
                    c = 'y';
                    break;
                }
                c = 65535;
                break;
            case 516808204:
                if (actionType.equals(Constants.ACTION_TYPE_GO_TIF)) {
                    c = 'z';
                    break;
                }
                c = 65535;
                break;
            case 616162536:
                if (actionType.equals(Constants.ACTION_TYPE_SCREEN_OFF)) {
                    c = '{';
                    break;
                }
                c = 65535;
                break;
            case 616245594:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_Points)) {
                    c = '|';
                    break;
                }
                c = 65535;
                break;
            case 641427902:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_VIBRATE)) {
                    c = '}';
                    break;
                }
                c = 65535;
                break;
            case 716062712:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_LAST)) {
                    c = '~';
                    break;
                }
                c = 65535;
                break;
            case 716254006:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_RNUM)) {
                    c = 127;
                    break;
                }
                c = 65535;
                break;
            case 716390103:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_WAIT)) {
                    c = 128;
                    break;
                }
                c = 65535;
                break;
            case 732456607:
                if (actionType.equals(Constants.ACTION_TYPE_IF_STR_CONTAIN)) {
                    c = 129;
                    break;
                }
                c = 65535;
                break;
            case 756900598:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_GET_SCREEN_TEXT)) {
                    c = 130;
                    break;
                }
                c = 65535;
                break;
            case 768303013:
                if (actionType.equals(Constants.ACTION_TYPE_FLY_OPEN)) {
                    c = 131;
                    break;
                }
                c = 65535;
                break;
            case 773008305:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_WAIT_ACTIVITY)) {
                    c = 132;
                    break;
                }
                c = 65535;
                break;
            case 819178436:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_QQ_TALK)) {
                    c = 133;
                    break;
                }
                c = 65535;
                break;
            case 839459637:
                if (actionType.equals(Constants.ACTION_TYPE_NFC_CLOSE)) {
                    c = 134;
                    break;
                }
                c = 65535;
                break;
            case 849769324:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_SHAKE_LIGHT)) {
                    c = 135;
                    break;
                }
                c = 65535;
                break;
            case 921420644:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_TEXT_ONE)) {
                    c = 136;
                    break;
                }
                c = 65535;
                break;
            case 947119631:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_SMALLER)) {
                    c = 137;
                    break;
                }
                c = 65535;
                break;
            case 961237000:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_ALL)) {
                    c = 138;
                    break;
                }
                c = 65535;
                break;
            case 996028151:
                if (actionType.equals(Constants.ACTION_TYPE_NOTICE_CLOSE)) {
                    c = 139;
                    break;
                }
                c = 65535;
                break;
            case 1002322283:
                if (actionType.equals(Constants.ACTION_TYPE_NOTICE_OPEN)) {
                    c = 140;
                    break;
                }
                c = 65535;
                break;
            case 1070540303:
                if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_SCREEN)) {
                    c = 141;
                    break;
                }
                c = 65535;
                break;
            case 1091167288:
                if (actionType.equals(Constants.ACTION_TYPE_SET_SCREEN)) {
                    c = 142;
                    break;
                }
                c = 65535;
                break;
            case 1143857607:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID)) {
                    c = 143;
                    break;
                }
                c = 65535;
                break;
            case 1181847797:
                if (actionType.equals(Constants.ACTION_TYPE_SYSTEM_BLUETOOTH_ON)) {
                    c = 144;
                    break;
                }
                c = 65535;
                break;
            case 1187973862:
                if (actionType.equals(Constants.ACTION_TYPE_SET_VOLUME)) {
                    c = 145;
                    break;
                }
                c = 65535;
                break;
            case 1196165383:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_ALL)) {
                    c = 146;
                    break;
                }
                c = 65535;
                break;
            case 1210798333:
                if (actionType.equals(Constants.ACTION_TYPE_RES_IMG_PICK)) {
                    c = 147;
                    break;
                }
                c = 65535;
                break;
            case 1250682444:
                if (actionType.equals(Constants.ACTION_TYPE_SYSTEM_LED_OFF)) {
                    c = 148;
                    break;
                }
                c = 65535;
                break;
            case 1276644898:
                if (actionType.equals(Constants.ACTION_TYPE_IF_FOR_BREAK)) {
                    c = 149;
                    break;
                }
                c = 65535;
                break;
            case 1319262272:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK_TIMES_MS)) {
                    c = 150;
                    break;
                }
                c = 65535;
                break;
            case 1319539115:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_ZFB_SHOU)) {
                    c = 151;
                    break;
                }
                c = 65535;
                break;
            case 1359443941:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_CLICK)) {
                    c = 152;
                    break;
                }
                c = 65535;
                break;
            case 1363141482:
                if (actionType.equals(Constants.ACTION_TYPE_REUSME_AUTO)) {
                    c = 153;
                    break;
                }
                c = 65535;
                break;
            case 1371552610:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LONG_PRESS_POWER)) {
                    c = 154;
                    break;
                }
                c = 65535;
                break;
            case 1399064449:
                if (actionType.equals(Constants.ACTION_TYPE_PAUSE_AUTO)) {
                    c = 155;
                    break;
                }
                c = 65535;
                break;
            case 1399827896:
                if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_MORE)) {
                    c = 156;
                    break;
                }
                c = 65535;
                break;
            case 1399966791:
                if (actionType.equals(Constants.ACTION_TYPE_IF_COLOR_RECT)) {
                    c = 157;
                    break;
                }
                c = 65535;
                break;
            case 1428567636:
                if (actionType.equals(Constants.ACTION_TYPE_SYSTEM_WIFI_OFF)) {
                    c = 158;
                    break;
                }
                c = 65535;
                break;
            case 1464841489:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_SEND_MSG)) {
                    c = 159;
                    break;
                }
                c = 65535;
                break;
            case 1553998770:
                if (actionType.equals(Constants.ACTION_TYPE_GPRS_CLOSE)) {
                    c = Typography.nbsp;
                    break;
                }
                c = 65535;
                break;
            case 1563175462:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG)) {
                    c = 161;
                    break;
                }
                c = 65535;
                break;
            case 1576991116:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_N)) {
                    c = Typography.cent;
                    break;
                }
                c = 65535;
                break;
            case 1594385870:
                if (actionType.equals(Constants.ACTION_TYPE_GPS_OPEN)) {
                    c = Typography.pound;
                    break;
                }
                c = 65535;
                break;
            case 1634630272:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_MEDIA_VOLUME_DONW)) {
                    c = 164;
                    break;
                }
                c = 65535;
                break;
            case 1649007232:
                if (actionType.equals(Constants.ACTION_TYPE_PHONE_SCENE_VIBRATE)) {
                    c = 165;
                    break;
                }
                c = 65535;
                break;
            case 1704622709:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_UNCHECK)) {
                    c = 166;
                    break;
                }
                c = 65535;
                break;
            case 1763285971:
                if (actionType.equals(Constants.ACTION_TYPE_IF_TEXT_OCR)) {
                    c = Typography.section;
                    break;
                }
                c = 65535;
                break;
            case 1789971089:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_CLICK_HAND)) {
                    c = 168;
                    break;
                }
                c = 65535;
                break;
            case 1801637470:
                if (actionType.equals(Constants.ACTION_TYPE_COPY_RECT_TEXT)) {
                    c = Typography.copyright;
                    break;
                }
                c = 65535;
                break;
            case 1809410086:
                if (actionType.equals(Constants.ACTION_TYPE_IF_STR_END)) {
                    c = 170;
                    break;
                }
                c = 65535;
                break;
            case 1851605328:
                if (actionType.equals(Constants.ACTION_TYPE_GPRS_OPEN)) {
                    c = 171;
                    break;
                }
                c = 65535;
                break;
            case 1956902749:
                if (actionType.equals(Constants.ACTION_TYPE_RES_LOCK)) {
                    c = 172;
                    break;
                }
                c = 65535;
                break;
            case 1991326024:
                if (actionType.equals(Constants.ACTION_TYPE_RES_SWIP_RIGHT)) {
                    c = 173;
                    break;
                }
                c = 65535;
                break;
            case 2016976960:
                if (actionType.equals(Constants.ACTION_TYPE_IF_IMG_RECT)) {
                    c = Typography.registered;
                    break;
                }
                c = 65535;
                break;
            case 2024319797:
                if (actionType.equals(Constants.ACTION_TYPE_STOP_AUTO)) {
                    c = 175;
                    break;
                }
                c = 65535;
                break;
            case 2031607117:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_RECT_TIMES)) {
                    c = Typography.degree;
                    break;
                }
                c = 65535;
                break;
            case 2049763798:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_WX_XIAO)) {
                    c = Typography.plusMinus;
                    break;
                }
                c = 65535;
                break;
            case 2073083772:
                if (actionType.equals(Constants.ACTION_TYPE_TOOL_URL_SCHEME)) {
                    c = 178;
                    break;
                }
                c = 65535;
                break;
            case 2138740411:
                if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ACTIVITY)) {
                    c = 179;
                    break;
                }
                c = 65535;
                break;
            case 2144954836:
                if (actionType.equals(Constants.ACTION_TYPE_RES_CLICK_IMG_TIMES)) {
                    c = 180;
                    break;
                }
                c = 65535;
                break;
            default:
                c = 65535;
                break;
        }
        switch (c) {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case '\f':
            case 14:
            case 15:
            case 18:
            case 28:
            case '$':
            case '&':
            case '1':
            case 'L':
            case 'U':
            case 'V':
            case 'W':
            case 'X':
            case 'Y':
            case 'Z':
            case '[':
            case '\\':
            case '^':
            case '_':
            case 'a':
            case 'b':
            case 'e':
            case 'i':
            case 'k':
            case 'l':
            case 'm':
            case 'o':
            case 'u':
            case 'x':
            case 'y':
            case 'z':
            case '{':
            case 130:
            case 131:
            case 134:
            case 135:
            case 139:
            case 140:
            case Opcodes.ADD_INT /*{ENCODED_INT: 144}*/:
            case Opcodes.REM_INT /*{ENCODED_INT: 148}*/:
            case 151:
            case 153:
            case 154:
            case 155:
            case 158:
            case Opcodes.AND_LONG /*{ENCODED_INT: 160}*/:
            case Opcodes.SHL_LONG /*{ENCODED_INT: 163}*/:
            case Opcodes.SHR_LONG /*{ENCODED_INT: 164}*/:
            case Opcodes.USHR_LONG /*{ENCODED_INT: 165}*/:
            case Opcodes.ADD_DOUBLE /*{ENCODED_INT: 171}*/:
            case Opcodes.SUB_DOUBLE /*{ENCODED_INT: 172}*/:
            case Opcodes.REM_DOUBLE /*{ENCODED_INT: 175}*/:
                AutoUtils.addAction(actionBean);
                this.mDialog.dismiss();
                return;
            case 5:
            case 6:
            case '~':
            case 136:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "点击文字", "请输入要点击的文字", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass26 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 7:
            case 30:
            case '6':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.请选择要判断的数字所在区域;\n\n2.确认要判断的大小条件;\n\n3.选择条件满足后要执行的动作;\n\n4.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass69 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("请选择要判断的数字所在区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass69.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                            public void result(boolean z, Rect rect) {
                                detailBean.setRect(rect);
                                EditDialogUtil.getInstance().choseBigger(MyApp.getContext(), "确认要判断的表达式", new EditDialogUtil.OnBiggerListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass69.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnBiggerListener
                                    public void result(String str, int i) {
                                        String str2;
                                        detailBean.setSign(str);
                                        detailBean.setValue(i);
                                        str.hashCode();
                                        char c = 65535;
                                        switch (str.hashCode()) {
                                            case -1570081146:
                                                if (str.equals(Constants.SIGN_NOT_EQUAL)) {
                                                    c = 0;
                                                    break;
                                                }
                                                break;
                                            case -191459948:
                                                if (str.equals(Constants.SIGN_SMAL_AND_EQUAL)) {
                                                    c = 1;
                                                    break;
                                                }
                                                break;
                                            case 251373074:
                                                if (str.equals(Constants.SIGN_EQUAL)) {
                                                    c = 2;
                                                    break;
                                                }
                                                break;
                                            case 263818365:
                                                if (str.equals(Constants.SIGN_SAMLL)) {
                                                    c = 3;
                                                    break;
                                                }
                                                break;
                                            case 514467563:
                                                if (str.equals(Constants.SIGN_BIG_AND_EQUAL)) {
                                                    c = 4;
                                                    break;
                                                }
                                                break;
                                            case 1095229278:
                                                if (str.equals(Constants.SIGN_BIG)) {
                                                    c = 5;
                                                    break;
                                                }
                                                break;
                                        }
                                        switch (c) {
                                            case 0:
                                                str2 = "!=";
                                                break;
                                            case 1:
                                                str2 = "<=";
                                                break;
                                            case 2:
                                                str2 = "=";
                                                break;
                                            case 3:
                                                str2 = "<";
                                                break;
                                            case 4:
                                                str2 = ">=";
                                                break;
                                            case 5:
                                                str2 = ">";
                                                break;
                                            default:
                                                str2 = "";
                                                break;
                                        }
                                        ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                        choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "条件：目标数字" + str2 + i);
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case '\b':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择要执行的动作;\n\n2.输入要for循环的次数;", 0, new EditDialogUtil.setOnSureListener() {

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionSecondUtil.getInstance().choseSecondActon("选择要执行的动作", new ChoseActionSecondUtil.OnChoseActionListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass79.AnonymousClass1 */

                            @Override
                            // com.lmiot.xyclick.Method.ChoseActionSecondUtil.OnChoseActionListener
                            public void result(ActionBean actionBean) {
                                detailBean.setDoActonBean(actionBean);
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "执行次数", "请输入执行次数（-1表示无限循环）", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass79.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setRepeat(MathUtils.parseInt(str));
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case '\t':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.请选择要判断的图片;\n\n2.选择条件满足后要执行的动作;\n\n3.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass67 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("请选择目标图片！");
                        YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass67.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                            public void result(boolean z, Bitmap bitmap) {
                                String saveBitmpToFile = ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID());
                                detailBean.setImgPath(saveBitmpToFile);
                                ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "图片：" + saveBitmpToFile);
                            }
                        });
                    }
                }, true);
                return;
            case '\n':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择字符串所区域;\n\n2.确认字符串的长度范围;\n\n3.选择条件满足后要执行的动作;\n\n4.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass75 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("选择字符串所在区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass75.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                            public void result(boolean z, Rect rect) {
                                detailBean.setRect(rect);
                                EditDialogUtil.getInstance().choseMaxAndMin(MyApp.getContext(), "字符串长度范围", new EditDialogUtil.OnMaxMinListener() {
                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnMaxMinListener
                                    public void result(int i, int i2) {
                                        detailBean.setMinNum(i);
                                        detailBean.setMaxNum(i2);
                                        ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                        choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "长度:" + i + "～" + i2);
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 11:
                PointBean pointBean = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
                this.mPointBean = pointBean;
                detailBean.setPointBean(pointBean);
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), InputDeviceCompat.SOURCE_TOUCHSCREEN, "点击次数", "请输入点击次数（-1表示无限循环）", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass13 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setRepeat(MathUtils.parseInt(str));
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case '\r':
                AutoUtils.addAction(actionBean);
                this.mDialog.dismiss();
                return;
            case 16:
            case ';':
                PointBean pointBean2 = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
                this.mPointBean = pointBean2;
                detailBean.setPointBean(pointBean2);
                this.mStringList.clear();
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().showTextList(MyApp.getContext(), "请确认文本库内容", this.mStringList, new EditDialogUtil.OnTextListListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass37 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnTextListListener
                    public void result(List<String> list) {
                        if (list.size() > 0) {
                            detailBean.setStringList(list);
                            actionBean.setDetail(new Gson().toJson(detailBean));
                            AutoUtils.addAction(actionBean);
                            return;
                        }
                        ToastUtil.warning("请至少添加一条内容再保存！");
                    }
                }, true);
                return;
            case 17:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().editXY(MyApp.getContext(), R.layout.dialog_editpercent_layout, "", "", new EditDialogUtil.EditMethodXY() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass12 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethodXY
                    public void edit(int i, int i2) {
                        detailBean.setClickX(i);
                        detailBean.setClickY(i2);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 19:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().choseMaxAndMin(MyApp.getContext(), "输入范围", new EditDialogUtil.OnMaxMinListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass61 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnMaxMinListener
                    public void result(int i, int i2) {
                        detailBean.setMinNum(i);
                        detailBean.setMaxNum(i2);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 20:
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.请输入要判断的控件ID;\n\n2.选择成功后要执行的动作;\n\n3.选择失败后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass90 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass90.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "请输入控件ID", "请输入控件ID", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass90.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setText(str);
                                        ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 21:
            case '9':
            case '>':
            case 143:
                this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.HAS_ID;
                this.mNowActioType = NoteInfoViewSDK.NowActioType.FIND_ID;
                String actionType2 = actionBean.getActionType();
                actionType2.hashCode();
                switch (actionType2.hashCode()) {
                    case -1688461147:
                        if (actionType2.equals(Constants.ACTION_TYPE_VIEW_FIND_TEXT)) {
                            c2 = 0;
                            break;
                        }
                        c2 = 65535;
                        break;
                    case -818317168:
                        if (actionType2.equals(Constants.ACTION_TYPE_VIEW_FIND_CHECKED)) {
                            c2 = 1;
                            break;
                        }
                        c2 = 65535;
                        break;
                    case -747218534:
                        if (actionType2.equals(Constants.ACTION_TYPE_VIEW_FIND_DES)) {
                            c2 = 2;
                            break;
                        }
                        c2 = 65535;
                        break;
                    case 1143857607:
                        if (actionType2.equals(Constants.ACTION_TYPE_VIEW_FIND_ID)) {
                            c2 = 3;
                            break;
                        }
                        c2 = 65535;
                        break;
                    default:
                        c2 = 65535;
                        break;
                }
                switch (c2) {
                    case 0:
                        this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.HAS_TEXT;
                        this.mNowActioType = NoteInfoViewSDK.NowActioType.FIND_TEXT;
                        break;
                    case 1:
                        this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.HAS_CHECK;
                        this.mNowActioType = NoteInfoViewSDK.NowActioType.FIND_CHECKED;
                        break;
                    case 2:
                        this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.HAS_DES;
                        this.mNowActioType = NoteInfoViewSDK.NowActioType.FIND_DES;
                        break;
                    case 3:
                        this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.HAS_ID;
                        this.mNowActioType = NoteInfoViewSDK.NowActioType.FIND_ID;
                        break;
                }
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.点击确定后将会显示满足属性的控件;\n\n2.请选择其中一个控件的属性作为判断条件;\n\n3.选择满足条件后要执行的动作;\n\n4.选择不满足条件后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass97 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        NoteInfoViewSDK.getInstance().chose(MyApp.getContext(), ChoseActionUtil.this.mFindViewTypeNow, new NoteInfoViewSDK.OnChoseViewListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass97.AnonymousClass1 */

                            @Override
                            // com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.OnChoseViewListener
                            public void result(ViewBean viewBean, String str) {
                                if (viewBean != null) {
                                    viewBean.setNowActioType(ChoseActionUtil.this.mNowActioType);
                                    String actionType = actionBean.getActionType();
                                    actionType.hashCode();
                                    char c = 65535;
                                    switch (actionType.hashCode()) {
                                        case -1688461147:
                                            if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_TEXT)) {
                                                c = 0;
                                                break;
                                            }
                                            break;
                                        case -818317168:
                                            if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_CHECKED)) {
                                                c = 1;
                                                break;
                                            }
                                            break;
                                        case -747218534:
                                            if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_DES)) {
                                                c = 2;
                                                break;
                                            }
                                            break;
                                        case 1143857607:
                                            if (actionType.equals(Constants.ACTION_TYPE_VIEW_FIND_ID)) {
                                                c = 3;
                                                break;
                                            }
                                            break;
                                    }
                                    switch (c) {
                                        case 0:
                                            viewBean.setNote("查找目标控件内容是否为:" + viewBean.getTextValue());
                                            break;
                                        case 1:
                                            viewBean.setNote("查找目标控件状态是否为:" + viewBean.isCheckState());
                                            break;
                                        case 2:
                                            viewBean.setNote("查找目标控件描述是否为:" + viewBean.getDesValue());
                                            break;
                                        case 3:
                                            viewBean.setNote("查找页面是否包含ID为:" + viewBean.getViewID() + "的控件");
                                            break;
                                    }
                                    detailBean.setViewBean(viewBean);
                                    ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                                    return;
                                }
                                ToastUtil.warning(str + "");
                            }
                        });
                    }
                }, true);
                return;
            case 22:
                this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.HAS_ID_WAIT;
                this.mNowActioType = NoteInfoViewSDK.NowActioType.FIND_ID_WAIT;
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.点击确定后将会显示有ID的控件;\n\n2.请选择其中一个控件作为等待条件;\n\n3.输入您要等待的最长时间(秒);\n\n4.选择发现ID后要执行的动作;\n\n5.选择超时后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass100 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        NoteInfoViewSDK.getInstance().chose(MyApp.getContext(), ChoseActionUtil.this.mFindViewTypeNow, new NoteInfoViewSDK.OnChoseViewListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass100.AnonymousClass1 */

                            @Override
                            // com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.OnChoseViewListener
                            public void result(ViewBean viewBean, String str) {
                                if (viewBean != null) {
                                    viewBean.setNowActioType(ChoseActionUtil.this.mNowActioType);
                                    viewBean.setNote("等待ID为:" + viewBean.getViewID() + "的控件出现");
                                    detailBean.setViewBean(viewBean);
                                    ChoseActionUtil.this.mHandler.post(new Runnable() {
                                        /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass100.AnonymousClass1.AnonymousClass1 */

                                        public void run() {
                                            EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "最长等待时间", "请输入时间（秒）", "", new EditDialogUtil.EditMethod() {
                                                /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass100.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                @Override
                                                // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                public void edit(String str) {
                                                    detailBean.setDruation(MathUtils.parseInt(str));
                                                    ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                                                }
                                            }, true);
                                        }
                                    });
                                    return;
                                }
                                ToastUtil.warning(str + "");
                            }
                        });
                    }
                }, true);
                return;
            case 23:
                PointBean pointBean3 = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
                this.mPointBean = pointBean3;
                detailBean.setPointBean(pointBean3);
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "输入文字", "请输入文字", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass32 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 24:
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择您要跳转到的动作;\n\n2.如果跳转动作序号不存在,则直接跳过该动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass86 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass86.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().gotoAction(MyApp.getContext(), true, -1, null, AutoUtils.mActionBeanList, new EditDialogUtil.OnChoseActionNum() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass86.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnChoseActionNum
                                    public void result(int i, ActionBean actionBean) {
                                        if (actionBean == null) {
                                            ToastUtil.warning("您没选择任何动作！");
                                            return;
                                        }
                                        detailBean.setGotoAction(actionBean);
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case 25:
                this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.LISTVIEW;
                this.mNowActioType = NoteInfoViewSDK.NowActioType.LISTVIEW;
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择要遍历的列表控件;\n\n2.选择一个唯一的子控件;\n\n3.添加遍历执行的动作;\n\n4.输入您要遍历的次数;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        NoteInfoViewSDK.getInstance().chose(MyApp.getContext(), ChoseActionUtil.this.mFindViewTypeNow, new NoteInfoViewSDK.OnChoseViewListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1 */

                            @Override
                            // com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.OnChoseViewListener
                            public void result(final ViewBean viewBean, final String str) {
                                if (viewBean != null) {
                                    ChoseActionUtil.this.mHandler.post(new Runnable() {
                                        /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1.AnonymousClass1 */

                                        public void run() {
                                            EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "备注控件名称", "请输入一个备注名称", "", new EditDialogUtil.EditMethod() {
                                                /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                @Override
                                                // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                public void edit(String str) {
                                                    viewBean.setNote(str);
                                                    detailBean.setViewBean(viewBean);
                                                    ChoseActionUtil.this.mHandler.post(new Runnable() {
                                                        /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                        public void run() {
                                                            EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "温馨提示", "1.点确定后将显示子控件;\n\n2.选择一个唯一的子控件;\n\n3.该子控件内容将作为判断是否已经遍历过的标准;\n\n", 0, new EditDialogUtil.setOnSureListener() {
                                                                /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                                @Override
                                                                // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                                                                public void sureClick(boolean z) {
                                                                    if (viewBean != null) {
                                                                        viewBean.setNowActioType(ChoseActionUtil.this.mNowActioType);
                                                                        NoteInfoViewSDK.getInstance().showFirstChild(new NoteInfoViewSDK.OnChoseViewListener() {
                                                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                                            @Override
                                                                            // com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.OnChoseViewListener
                                                                            public void result(ViewBean viewBean, String str) {
                                                                                if (viewBean != null) {
                                                                                    viewBean.setNowActioType(ChoseActionUtil.this.mNowActioType);
                                                                                    detailBean.setListLimitViewBean(viewBean);
                                                                                    ChoseActionUtil.this.mHandler.post(new Runnable() {
                                                                                        /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                                                        public void run() {
                                                                                            EditDialogUtil.getInstance().showListItemList(MyApp.getContext(), true, null, new EditDialogUtil.OnViewItemListener() {
                                                                                                /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                                                                @Override
                                                                                                // com.lmiot.xyclick.Util.EditDialogUtil.OnViewItemListener
                                                                                                public void result(List<ActionBean> list) {
                                                                                                    detailBean.setActionBeanList(list);
                                                                                                    LogUtil.d("actionBeanListdd", "actionBeanList:" + new Gson().toJson(list));
                                                                                                    ChoseActionUtil.this.mHandler.post(new Runnable() {
                                                                                                        /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                                                                        public void run() {
                                                                                                            EditDialogUtil.getInstance().edit(MyApp.getContext(), InputDeviceCompat.SOURCE_TOUCHSCREEN, "遍历的次数", "请输入次数（-1表示一直遍历）", "", new EditDialogUtil.EditMethod() {
                                                                                                                /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass104.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                                                                                @Override
                                                                                                                // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                                                                                public void edit(String str) {
                                                                                                                    detailBean.setRepeat(MathUtils.parseInt(str));
                                                                                                                    actionBean.setDetail(new Gson().toJson(detailBean));
                                                                                                                    AutoUtils.addAction(actionBean);
                                                                                                                }
                                                                                                            }, true);
                                                                                                        }
                                                                                                    });
                                                                                                }
                                                                                            });
                                                                                        }
                                                                                    });
                                                                                    return;
                                                                                }
                                                                                ToastUtil.warning(str + "");
                                                                            }
                                                                        });
                                                                        return;
                                                                    }
                                                                    ToastUtil.warning(str + "");
                                                                }
                                                            }, true);
                                                        }
                                                    });
                                                }
                                            }, true);
                                        }
                                    });
                                } else {
                                    ToastUtil.warning("目标控件数量为0，请稍后再试！");
                                }
                            }
                        });
                    }
                }, true);
                return;
            case 26:
            case 29:
            case 'd':
            case 'j':
            case Opcodes.ADD_FLOAT /*{ENCODED_INT: 166}*/:
                this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.ALL;
                this.mNowActioType = NoteInfoViewSDK.NowActioType.CLICK;
                String actionType3 = actionBean.getActionType();
                actionType3.hashCode();
                switch (actionType3.hashCode()) {
                    case -1555612659:
                        if (actionType3.equals(Constants.ACTION_TYPE_VIEW_CHECK)) {
                            c3 = 0;
                            break;
                        }
                        c3 = 65535;
                        break;
                    case -1528846928:
                        if (actionType3.equals(Constants.ACTION_TYPE_VIEW_INPUT)) {
                            c3 = 1;
                            break;
                        }
                        c3 = 65535;
                        break;
                    case 153596125:
                        if (actionType3.equals(Constants.ACTION_TYPE_VIEW_CLICK)) {
                            c3 = 2;
                            break;
                        }
                        c3 = 65535;
                        break;
                    case 301325639:
                        if (actionType3.equals(Constants.ACTION_TYPE_VIEW_LONG_CLICK)) {
                            c3 = 3;
                            break;
                        }
                        c3 = 65535;
                        break;
                    case 1704622709:
                        if (actionType3.equals(Constants.ACTION_TYPE_VIEW_UNCHECK)) {
                            c3 = 4;
                            break;
                        }
                        c3 = 65535;
                        break;
                    default:
                        c3 = 65535;
                        break;
                }
                switch (c3) {
                    case 0:
                        this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.CHECKED;
                        this.mNowActioType = NoteInfoViewSDK.NowActioType.CHECK;
                        break;
                    case 1:
                        this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.INPUT;
                        this.mNowActioType = NoteInfoViewSDK.NowActioType.INPUT;
                        break;
                    case 2:
                        this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.CLICK;
                        this.mNowActioType = NoteInfoViewSDK.NowActioType.CLICK;
                        break;
                    case 3:
                        this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.LONGCLICK;
                        this.mNowActioType = NoteInfoViewSDK.NowActioType.LONG_CLICK;
                        break;
                    case 4:
                        this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.CHECKED;
                        this.mNowActioType = NoteInfoViewSDK.NowActioType.UNCHECK;
                        break;
                }
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择一个控件;\n\n2.点击确定;\n\n3.备注控件的名称;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass96 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        NoteInfoViewSDK.getInstance().chose(MyApp.getContext(), ChoseActionUtil.this.mFindViewTypeNow, new NoteInfoViewSDK.OnChoseViewListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass96.AnonymousClass1 */

                            @Override
                            // com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.OnChoseViewListener
                            public void result(final ViewBean viewBean, final String str) {
                                if (viewBean != null) {
                                    viewBean.setNowActioType(ChoseActionUtil.this.mNowActioType);
                                    if (actionBean.getActionType().equals(Constants.ACTION_TYPE_VIEW_INPUT)) {
                                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass96.AnonymousClass1.AnonymousClass1 */

                                            public void run() {
                                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "输入的内容", "请输入", "", new EditDialogUtil.EditMethod() {
                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass96.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                    @Override
                                                    // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                    public void edit(String str) {
                                                        viewBean.setStringValue(str);
                                                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass96.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                            public void run() {
                                                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "备注控件名称", "请输入一个备注名称", "", new EditDialogUtil.EditMethod() {
                                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass96.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                                    @Override
                                                                    // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                                    public void edit(String str) {
                                                                        viewBean.setNote(str);
                                                                        detailBean.setViewBean(viewBean);
                                                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                                                        AutoUtils.addAction(actionBean);
                                                                        ToastUtil.warning(str + "");
                                                                    }
                                                                }, true);
                                                            }
                                                        });
                                                    }
                                                }, true);
                                            }
                                        });
                                    } else {
                                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass96.AnonymousClass1.AnonymousClass2 */

                                            public void run() {
                                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "备注控件名称", "请输入一个备注名称", "", new EditDialogUtil.EditMethod() {
                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass96.AnonymousClass1.AnonymousClass2.AnonymousClass1 */

                                                    @Override
                                                    // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                    public void edit(String str) {
                                                        viewBean.setNote(str);
                                                        detailBean.setViewBean(viewBean);
                                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                                        AutoUtils.addAction(actionBean);
                                                        ToastUtil.warning(str + "");
                                                    }
                                                }, true);
                                            }
                                        });
                                    }
                                } else {
                                    ToastUtil.warning(str + "");
                                }
                            }
                        });
                    }
                }, true);
                return;
            case 27:
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                detailBean.setVariableType(itemActionBean.getActionType());
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择您要的设备ID;\n\n2.选择要执行的动作;\n\n3.保存即可;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass63 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass63.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().choseRemoteDev(MyApp.getContext(), null, new EditDialogUtil.ShareEditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass63.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.ShareEditMethod
                                    public void edit(Set<String> set) {
                                        detailBean.setRemoteDevList(set);
                                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass63.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            public void run() {
                                                EditDialogUtil.getInstance().choseRemoteAuto(MyApp.getContext(), "", new OnBasicListener() {
                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass63.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                    @Override
                                                    // com.lmiot.xyclick.inteface.OnBasicListener
                                                    public void result(boolean z, String str) {
                                                        detailBean.setRemoteAutoID(str);
                                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                                        AutoUtils.addAction(actionBean);
                                                    }
                                                }, true);
                                            }
                                        });
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 31:
                this.mDialog.dismiss();
                this.mPointBeanList.clear();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.找到如下所示的蓝色瞄准图标;\n\n2.拖动该图标到起点A，然后长按;\n\n3.拖动该图标到点B，然后长按;\n\n4.拖动该图标到点C，然后长按;\n\n5.……（重复）", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass24 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass24.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                            public void result(int i, int i2) {
                                ChoseActionUtil.this.mPointBeanList.add(new PointBean(i, i2));
                                EditDialogUtil.getInstance().showPointList(MyApp.getContext(), false, "请确认滑动的坐标", ChoseActionUtil.this.mPointBeanList, new EditDialogUtil.OnPointChoseListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass24.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChoseListener
                                    public void result(List<PointBean> list) {
                                        if (list.size() >= 2) {
                                            MyApp.mOnActionViewLongClickListener = null;
                                            detailBean.setPointBeanList(list);
                                            actionBean.setDetail(new Gson().toJson(detailBean));
                                            AutoUtils.addAction(actionBean);
                                            return;
                                        }
                                        ToastUtil.warning("请至少选择2个点后再保存！");
                                    }
                                }, true);
                            }
                        };
                    }
                }, true);
                return;
            case ' ':
                this.mDialog.dismiss();
                this.mPointBeanList.clear();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.找到如下所示的蓝色瞄准图标;\n\n2.拖动该图标到起点A(需要拖动的点），然后长按;\n\n3.拖动该图标到终点B(最终拖动到的位置)，然后长按", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass23 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass23.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                            public void result(int i, int i2) {
                                if (ChoseActionUtil.this.mPointBeanList.size() <= 1) {
                                    ChoseActionUtil.this.mPointBeanList.add(new PointBean(i, i2));
                                } else {
                                    ToastUtil.warning("已经包含两个点，请返回保存");
                                }
                                EditDialogUtil.getInstance().showPointList(MyApp.getContext(), false, "请确认拖动的坐标", ChoseActionUtil.this.mPointBeanList, new EditDialogUtil.OnPointChoseListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass23.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChoseListener
                                    public void result(List<PointBean> list) {
                                        if (list.size() == 2) {
                                            MyApp.mOnActionViewLongClickListener = null;
                                            detailBean.setPointBeanList(list);
                                            actionBean.setDetail(new Gson().toJson(detailBean));
                                            AutoUtils.addAction(actionBean);
                                            return;
                                        }
                                        ToastUtil.warning("请选择两个点后再保存！");
                                    }
                                }, true);
                            }
                        };
                    }
                }, true);
                return;
            case '!':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.截取要等待出现的图片;\n\n2.输入您要等待的最长时间(秒);\n\n3.选择文字出现后要执行的动作;\n\n4.选择超时后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass99 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("请拖动选择目标图片！");
                        YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass99.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                            public void result(boolean z, Bitmap bitmap) {
                                detailBean.setImgPath(ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID()));
                                ChoseActionUtil.this.mHandler.post(new Runnable() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass99.AnonymousClass1.AnonymousClass1 */

                                    public void run() {
                                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "最长等待时间", "请输入时间（秒）", "", new EditDialogUtil.EditMethod() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass99.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            @Override
                                            // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                            public void edit(String str) {
                                                detailBean.setDruation(MathUtils.parseInt(str));
                                                ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                                            }
                                        }, true);
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case '\"':
                this.mStringList.clear();
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().showTextList(MyApp.getContext(), "请确认文本库内容", this.mStringList, new EditDialogUtil.OnTextListListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass36 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnTextListListener
                    public void result(List<String> list) {
                        if (list.size() > 0) {
                            detailBean.setStringList(list);
                            actionBean.setDetail(new Gson().toJson(detailBean));
                            AutoUtils.addAction(actionBean);
                            return;
                        }
                        ToastUtil.warning("请至少添加一条内容再保存！");
                    }
                }, true);
                return;
            case '#':
            case Opcodes.MUL_FLOAT /*{ENCODED_INT: 168}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "请输入控件ID", "请输入控件ID", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass89 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case '%':
            case '@':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.请选择文字所在区域;\n\n2.输入要判断的文字;\n\n3.选择条件满足后要执行的动作;\n\n4.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass66 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("请选择文字所在区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass66.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                            public void result(boolean z, Rect rect) {
                                detailBean.setRect(rect);
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "要检测的文字", "请输入文字", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass66.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setText(str);
                                        ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                        choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "文字：" + detailBean.getText() + "(区域)");
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case '\'':
                PointBean pointBean4 = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
                this.mPointBean = pointBean4;
                detailBean.setPointBean(pointBean4);
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().httpMethodInput(MyApp.getContext(), detailBean.getHttpType(), detailBean.getHttpUrl(), new EditDialogUtil.OnHTTPChangeListener() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnHTTPChangeListener
                    public void result(String str, String str2) {
                        detailBean.setHttpType(str);
                        detailBean.setHttpUrl(str2);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                });
                return;
            case '(':
                this.mDialog.dismiss();
                YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                    public void result(boolean z, Rect rect) {
                        detailBean.setRect(rect);
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "输入文字", "请输入文字", "", new EditDialogUtil.EditMethod() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass35.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setText(str);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        }, true);
                    }
                });
                return;
            case ')':
                this.mDialog.dismiss();
                ToastUtil.warning("请选择文字所在区域！");
                YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass15 */

                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                    public void result(boolean z, Rect rect) {
                        detailBean.setRect(rect);
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "要点击的文字", "请输入文字", "", new EditDialogUtil.EditMethod() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass15.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setText(str);
                                EditDialogUtil.getInstance().choseOffSet(MyApp.getContext(), "请确认点击偏移量", 0, 0, new EditDialogUtil.OnOffetListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass15.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnOffetListener
                                    public void result(int i, int i2) {
                                        detailBean.setOffsetX(i);
                                        detailBean.setOffsetY(i2);
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                }, true);
                            }
                        }, true);
                    }
                });
                return;
            case '*':
                this.mDialog.dismiss();
                ToastUtil.warning("请拖动选择目标图片！");
                YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass42 */

                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                    public void result(boolean z, Bitmap bitmap) {
                        String saveBitmpToFile = ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID());
                        detailBean.setImgPath(saveBitmpToFile);
                        detailBean.setImgPath(saveBitmpToFile);
                        ToastUtil.warning("请输入图片相似度！");
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 8194, "设置图片相似度", "1-100%", "60", new EditDialogUtil.EditMethod() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass42.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setRepeat(MathUtils.parseInt(str));
                                ChoseActionUtil.this.mHandler.post(new Runnable() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass42.AnonymousClass1.AnonymousClass1 */

                                    public void run() {
                                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "延迟点击时间", "请输入延迟点击时间，单位毫秒", "", new EditDialogUtil.EditMethod() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass42.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            @Override
                                            // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                            public void edit(String str) {
                                                detailBean.setDruation(MathUtils.parseInt(str));
                                                actionBean.setDetail(new Gson().toJson(detailBean));
                                                AutoUtils.addAction(actionBean);
                                            }
                                        }, true);
                                    }
                                });
                            }
                        }, true);
                    }
                });
                return;
            case '+':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.请输入要等待出现的文字;\n\n2.输入您要等待的最长时间(秒);\n\n3.选择文字出现后要执行的动作;\n\n4.选择超时后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass98 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass98.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "请输入等待的文字", "请输入等待的文字", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass98.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setText(str);
                                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass98.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            public void run() {
                                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "最长等待时间", "请输入时间（秒）", "", new EditDialogUtil.EditMethod() {
                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass98.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                    @Override
                                                    // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                    public void edit(String str) {
                                                        detailBean.setDruation(MathUtils.parseInt(str));
                                                        ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                                                    }
                                                }, true);
                                            }
                                        });
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case ',':
                PointBean pointBean5 = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
                this.mPointBean = pointBean5;
                detailBean.setPointBean(pointBean5);
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().choseMaxAndMin(MyApp.getContext(), "输入范围", new EditDialogUtil.OnMaxMinListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass40 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnMaxMinListener
                    public void result(int i, int i2) {
                        detailBean.setMinNum(i);
                        detailBean.setMaxNum(i2);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case '-':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.添加第1个动作;\n2.添加第2个动作;\n3.添加第n个动作……;\n4.输入要for循环的次数;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass81 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass81.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().showForPlusList(MyApp.getContext(), null, new EditDialogUtil.OnActionListListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass81.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnActionListListener
                                    public void result(List<ActionBean> list) {
                                        detailBean.setActionBeanList(list);
                                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass81.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            public void run() {
                                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "执行次数", "请输入执行次数", "", new EditDialogUtil.EditMethod() {
                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass81.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                    @Override
                                                    // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                    public void edit(String str) {
                                                        detailBean.setRepeat(MathUtils.parseInt(str));
                                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                                        AutoUtils.addAction(actionBean);
                                                    }
                                                }, true);
                                            }
                                        });
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case '.':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sendEmail(MyApp.getContext(), detailBean.getText(), detailBean.getTitle(), detailBean.getMsg(), new EditDialogUtil.OnEmailChangeListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass55 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnEmailChangeListener
                    public void result(String str, String str2, String str3) {
                        detailBean.setText(str);
                        detailBean.setTitle(str2);
                        detailBean.setMsg(str3);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                });
                return;
            case '/':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                detailBean.setVariableType(itemActionBean.getActionType());
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择您要的设备ID;\n\n2.保存即可;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass64 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass64.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().choseRemoteDev(MyApp.getContext(), null, new EditDialogUtil.ShareEditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass64.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.ShareEditMethod
                                    public void edit(Set<String> set) {
                                        detailBean.setRemoteDevList(set);
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case '0':
                actionBean.setDelay(getDelayTime(1));
                this.mDialog.dismiss();
                this.mPointBeanList.clear();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.找到如下所示的蓝色瞄准图标;\n\n2.拖动该图标到需要点击的地方;\n\n3.然后长按该图标即可选择;", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass20 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass20.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                            public void result(int i, int i2) {
                                ChoseActionUtil.this.mPointBeanList.add(new PointBean(i, i2));
                                EditDialogUtil.getInstance().showPointList(MyApp.getContext(), false, "请确认同时按住的坐标", ChoseActionUtil.this.mPointBeanList, new EditDialogUtil.OnPointChoseListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass20.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChoseListener
                                    public void result(List<PointBean> list) {
                                        if (list.size() >= 2) {
                                            detailBean.setPointBeanList(list);
                                            MyApp.mOnActionViewLongClickListener = null;
                                            EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "模拟长按时间", "请输入长按时间（最大59秒）", "", new EditDialogUtil.EditMethod() {
                                                /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass20.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                @Override
                                                // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                public void edit(String str) {
                                                    int parseInt = MathUtils.parseInt(str);
                                                    if (parseInt > 59) {
                                                        ToastUtil.warning("最大59秒！");
                                                        return;
                                                    }
                                                    detailBean.setDruation(parseInt);
                                                    actionBean.setDetail(new Gson().toJson(detailBean));
                                                    AutoUtils.addAction(actionBean);
                                                }
                                            }, true);
                                            return;
                                        }
                                        ToastUtil.warning("请至少选择2个点后再保存！");
                                    }
                                }, true);
                            }
                        };
                    }
                }, true);
                return;
            case '2':
                PointBean pointBean6 = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
                this.mPointBean = pointBean6;
                detailBean.setPointBean(pointBean6);
                this.mDialog.dismiss();
                actionBean.setDetail(new Gson().toJson(detailBean));
                AutoUtils.addAction(actionBean);
                return;
            case '3':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.拖动以下蓝色图标到要取颜色的地方;\n\n2.长按瞄准图标选择颜色和位置;\n\n3.选择条件满足后要执行的动作;\n\n4.选择条件不满足后要执行的动作;", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass71 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                            @Override // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                            public void result(final int i, final int i2) {
                                MyApp.mOnActionViewLongClickListener = null;
                                FloatManager.hide(InitFloatBean.FloatType.action);
                                YYScreenCutSDK.getInstance().cutFull(MyApp.getContext(), new YYScreenCutSDK.OnCutListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass71.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                                    public void result(boolean z, Bitmap bitmap) {
                                        String colorByXY = YYScreenCutSDK.getColorByXY(bitmap, i, i2, true);
                                        FloatManager.show(InitFloatBean.FloatType.action);
                                        EditDialogUtil.getInstance().choseColor(MyApp.getContext(), "xy", "请确认位置和颜色", i, i2, null, colorByXY, new EditDialogUtil.OnColorListener() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass71.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            @Override
                                            // com.lmiot.xyclick.Util.EditDialogUtil.OnColorListener
                                            public void result(IfBeanColor ifBeanColor) {
                                                detailBean.setIfBeanColor(ifBeanColor);
                                                ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                                choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "颜色:" + ifBeanColor.getName());
                                            }
                                        }, true);
                                    }
                                });
                            }
                        };
                    }
                }, true);
                return;
            case '4':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择第一个条件;\n\n2.选择第二个条件;\n\n3.选择第n个条件;\n\n4.选择每个条件的逻辑符号;\n\n5.选择同时满足后执行的动作;\n\n6.选择任一不满足后执行的动作;", 0, new EditDialogUtil.setOnSureListener() {

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass87.AnonymousClass1 */

                            public void run() {
                                ChoseActionUtil.this.mHandler.post(new Runnable() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass87.AnonymousClass1.AnonymousClass1 */

                                    public void run() {
                                        EditDialogUtil.getInstance().showLogicList(MyApp.getContext(), null, new EditDialogUtil.OnLogicListener() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass87.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            @Override
                                            // com.lmiot.xyclick.Util.EditDialogUtil.OnLogicListener
                                            public void result(List<IfBean> list) {
                                                if (list.size() == 0) {
                                                    ToastUtil.warning("您没选择任何动作！");
                                                    return;
                                                }
                                                detailBean.setLogicBeanList(list);
                                                ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                                choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "多条件判断:" + list.size() + "个");
                                            }
                                        });
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case '5':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择要执行的动作;\n\n2.选择while循环的满足条件;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass83 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionSecondUtil.getInstance().choseSecondActon("选择要执行的动作", new ChoseActionSecondUtil.OnChoseActionListener() {
                            @Override
                            // com.lmiot.xyclick.Method.ChoseActionSecondUtil.OnChoseActionListener
                            public void result(ActionBean actionBean) {
                                detailBean.setDoActonBean(actionBean);
                                ChoseActionIFUtil.getInstance().showChoseDialog("选择满足执行的条件", new ChoseActionIFUtil.OnChoseIfBeanListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass83.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Method.ChoseActionIFUtil.OnChoseIfBeanListener
                                    public void result(IfBean ifBean) {
                                        detailBean.setIfBean(ifBean);
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case '7':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.输入第一组账号;\n\n2.输入第二组账号;\n\n3.输入第n组账号;\n\n\n注意：所有数据只会保存在本地；\n\n卸载重装后需要重新配置;", 0, new EditDialogUtil.setOnSureListener() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass39.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().showThreeList(MyApp.getContext(), null, new EditDialogUtil.OnTextThreeListListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass39.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnTextThreeListListener
                                    public void result(List<TextThreeBean> list) {
                                        if (list.size() > 0) {
                                            detailBean.setThreeBeanList(list);
                                            actionBean.setDetail(new Gson().toJson(detailBean));
                                            AutoUtils.addAction(actionBean);
                                            return;
                                        }
                                        ToastUtil.warning("请至少添加一组账号再保存！");
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case '8':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.先选择要拖动的图片;\n\n2.找到如下所示蓝色瞄准图标;\n\n3.将瞄准图标拖动到目的地，然后长按即可;", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    @Override
                    public void sureClick(boolean z) {
                        ToastUtil.warning("请选择目标图片！");
                        YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                            public void result(boolean z, Bitmap bitmap) {
                                detailBean.setImgPath(ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID()));
                                ToastUtil.warning("拖动瞄准图标，然后长按！");
                                MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass48.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                                    public void result(int i, int i2) {
                                        MyApp.mOnActionViewLongClickListener = null;
                                        detailBean.setPointBean(new PointBean(i, i2));
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                };
                            }
                        });
                    }
                }, true);
                return;
            case ':':
                detailBean.setPackName(itemActionBean.getActionDetail());
                actionBean.setDetail(new Gson().toJson(detailBean));
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().editApp(MyApp.getContext(), false, new EditDialogUtil.EditMethodAPP() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass49 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethodAPP
                    public void edit(boolean z) {
                        detailBean.setAppNew(z);
                        AutoUtils.addAction(actionBean);
                    }
                });
                return;
            case '<':
                this.mDialog.dismiss();
                this.mPointBeanList.clear();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.找到如下所示的蓝色瞄准图标;\n\n2.拖动该图标到起点A，然后长按;\n\n3.拖动该图标到终点B，然后长按", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass22 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass22.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                            public void result(int i, int i2) {
                                if (ChoseActionUtil.this.mPointBeanList.size() <= 1) {
                                    ChoseActionUtil.this.mPointBeanList.add(new PointBean(i, i2));
                                } else {
                                    ToastUtil.warning("已经包含两个点，请返回保存");
                                }
                                EditDialogUtil.getInstance().showPointList(MyApp.getContext(), false, "请确认滑动的坐标", ChoseActionUtil.this.mPointBeanList, new EditDialogUtil.OnPointChoseListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass22.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChoseListener
                                    public void result(List<PointBean> list) {
                                        if (list.size() == 2) {
                                            MyApp.mOnActionViewLongClickListener = null;
                                            detailBean.setPointBeanList(list);
                                            actionBean.setDetail(new Gson().toJson(detailBean));
                                            AutoUtils.addAction(actionBean);
                                            return;
                                        }
                                        ToastUtil.warning("请选择两个点后再保存！");
                                    }
                                }, true);
                            }
                        };
                    }
                }, true);
                return;
            case '=':
            case 'c':
            case 'r':
            case 's':
            case 137:
            case Opcodes.MUL_DOUBLE /*{ENCODED_INT: 173}*/:
                AutoUtils.addAction(actionBean);
                this.mDialog.dismiss();
                return;
            case '?':
                this.mDialog.dismiss();
                YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass58 */

                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                    public void result(boolean z, Rect rect) {
                        detailBean.setRect(rect);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                });
                return;
            case 'A':
            case 'f':
                this.mDialog.dismiss();
                YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass28 */

                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                    public void result(boolean z, Rect rect) {
                        detailBean.setRect(rect);
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "点击文字", "请输入要点击的文字", "", new EditDialogUtil.EditMethod() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass28.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setText(str);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        }, true);
                    }
                });
                return;
            case 'B':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().editXY(MyApp.getContext(), R.layout.dialog_editxy_layout, "", "", new EditDialogUtil.EditMethodXY() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass11 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethodXY
                    public void edit(int i, int i2) {
                        detailBean.setClickX(i);
                        detailBean.setClickY(i2);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 'C':
                this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.HAS_TEXT_WAIT;
                this.mNowActioType = NoteInfoViewSDK.NowActioType.FIND_TEXT_WAIT;
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.点击确定后将会显示有文字的控件;\n\n2.请选择其中一个控件作为等待条件;\n\n3.输入您要等待的最长时间(秒);\n\n4.选择发现ID后要执行的动作;\n\n5.选择超时后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass101 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        NoteInfoViewSDK.getInstance().chose(MyApp.getContext(), ChoseActionUtil.this.mFindViewTypeNow, new NoteInfoViewSDK.OnChoseViewListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass101.AnonymousClass1 */

                            @Override
                            // com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.OnChoseViewListener
                            public void result(ViewBean viewBean, String str) {
                                if (viewBean != null) {
                                    viewBean.setNowActioType(ChoseActionUtil.this.mNowActioType);
                                    viewBean.setNote("等待文字为:" + viewBean.getTextValue() + "的控件出现");
                                    detailBean.setViewBean(viewBean);
                                    ChoseActionUtil.this.mHandler.post(new Runnable() {
                                        /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass101.AnonymousClass1.AnonymousClass1 */

                                        public void run() {
                                            EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "最长等待时间", "请输入时间（秒）", "", new EditDialogUtil.EditMethod() {
                                                /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass101.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                @Override
                                                // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                public void edit(String str) {
                                                    detailBean.setDruation(MathUtils.parseInt(str));
                                                    ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                                                }
                                            }, true);
                                        }
                                    });
                                    return;
                                }
                                ToastUtil.warning(str + "");
                            }
                        });
                    }
                }, true);
                return;
            case 'D':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "长按文字", "请输入要长按的文字", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass29 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 'E':
                PointBean pointBean7 = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
                this.mPointBean = pointBean7;
                detailBean.setPointBean(pointBean7);
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "模拟长按时间", "请输入长按时间（最大59秒）", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass16 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        int parseInt = MathUtils.parseInt(str);
                        if (parseInt > 59) {
                            ToastUtil.warning("最大59秒！");
                            return;
                        }
                        detailBean.setDruation(parseInt);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 'F':
                this.mFindViewTypeNow = NoteInfoViewSDK.FindViewType.HAS_ID;
                this.mNowActioType = NoteInfoViewSDK.NowActioType.FIND_ID;
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.点击确定后将会显示有ID的控件;\n\n2.请选择其中一个作为遍历点击的控件;\n\n", 0, new EditDialogUtil.setOnSureListener() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        NoteInfoViewSDK.getInstance().chose(MyApp.getContext(), ChoseActionUtil.this.mFindViewTypeNow, new NoteInfoViewSDK.OnChoseViewListener() {

                            @Override
                            // com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.OnChoseViewListener
                            public void result(ViewBean viewBean, String str) {
                                if (viewBean != null) {
                                    detailBean.setText(viewBean.getViewID());
                                    actionBean.setDetail(new Gson().toJson(detailBean));
                                    AutoUtils.addAction(actionBean);
                                    return;
                                }
                                ToastUtil.warning(str + "");
                            }
                        });
                    }
                }, true);
                return;
            case 'G':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.拖动选择字符串所在范围;\n\n2.输入字符串开头的字符;\n\n3.选择条件满足后要执行的动作;\n\n4.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass77 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("选择字符串所在区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass77.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                            public void result(boolean z, Rect rect) {
                                detailBean.setRect(rect);
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "开头字符串", "请输入开头字符串", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass77.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setText(str);
                                        ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                        choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "条件：字符串以(" + str + ")开头");
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 'H':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.请输入要等待的控件ID;\n\n2.输入您要等待的最长时间(秒);\n\n3.选择ID出现后要执行的动作;\n\n4.选择超时后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass91 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass91.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "请输入要等待的控件ID", "请输入要等待的控件ID", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass91.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setText(str);
                                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass91.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            public void run() {
                                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "最长等待时间", "请输入时间（秒）", "", new EditDialogUtil.EditMethod() {
                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass91.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                    @Override
                                                    // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                    public void edit(String str) {
                                                        detailBean.setDruation(MathUtils.parseInt(str));
                                                        ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                                                    }
                                                }, true);
                                            }
                                        });
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 'I':
                this.mDialog.dismiss();
                YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass30 */

                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                    public void result(boolean z, Rect rect) {
                        detailBean.setRect(rect);
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "长按文字", "请输入要长按的文字", "", new EditDialogUtil.EditMethod() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass30.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setText(str);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        }, true);
                    }
                });
                return;
            case 'J':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.添加第1个动作;\n2.添加第2个动作;\n3.添加第n个动作……", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass80 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass80.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().showForPlusList(MyApp.getContext(), null, new EditDialogUtil.OnActionListListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass80.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnActionListListener
                                    public void result(List<ActionBean> list) {
                                        detailBean.setActionBeanList(list);
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case 'K':
            case ']':
            case 152:
                PointBean pointBean8 = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
                this.mPointBean = pointBean8;
                detailBean.setPointBean(pointBean8);
                actionBean.setDetail(new Gson().toJson(detailBean));
                AutoUtils.addAction(actionBean);
                this.mDialog.dismiss();
                return;
            case 'M':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择您要调整到的动作;\n\n2.往后面调整则直接输入动作序号;\n\n3.如果调整动作序号不存在,则直接跳过该动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass85 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass85.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().gotoAction(MyApp.getContext(), false, -1, null, AutoUtils.mActionBeanList, new EditDialogUtil.OnChoseActionNum() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass85.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnChoseActionNum
                                    public void result(int i, ActionBean actionBean) {
                                        if (i == -1) {
                                            ToastUtil.warning("您没选择任何动作！");
                                            return;
                                        }
                                        detailBean.setGotoNum(i);
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case 'N':
            case Opcodes.SUB_FLOAT /*{ENCODED_INT: 167}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.输入要判断的目标文字;\n\n2.选择条件满足后要执行的动作;\n\n3.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass65 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "检测的文字", "请输入文字", "", new EditDialogUtil.EditMethod() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass65.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setText(str);
                                ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "文字：" + detailBean.getText());
                            }
                        }, true);
                    }
                }, true);
                return;
            case 'O':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择判断的时间范围;\n\n2.选择条件满足后要执行的动作;\n\n3.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass70 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        EditDialogUtil.getInstance().choseTimer(MyApp.getContext(), "选择判断的时间范围", new EditDialogUtil.OnTimerListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass70.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnTimerListener
                            public void result(String str, String str2) {
                                detailBean.setStartTime(str);
                                detailBean.setEndTime(str2);
                                ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "条件：" + str + "～" + str2);
                            }
                        }, true);
                    }
                }, true);
                return;
            case 'P':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择要执行的动作;\n\n2.选择wait等待的条件;", 0, new EditDialogUtil.setOnSureListener() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionSecondUtil.getInstance().choseSecondActon("选择要执行的动作", new ChoseActionSecondUtil.OnChoseActionListener() {
                            @Override
                            // com.lmiot.xyclick.Method.ChoseActionSecondUtil.OnChoseActionListener
                            public void result(ActionBean actionBean) {
                                detailBean.setDoActonBean(actionBean);
                                ChoseActionIFUtil.getInstance().showChoseDialog("选择等待执行的条件", new ChoseActionIFUtil.OnChoseIfBeanListener() {
                                    @Override
                                    // com.lmiot.xyclick.Method.ChoseActionIFUtil.OnChoseIfBeanListener
                                    public void result(IfBean ifBean) {
                                        detailBean.setIfBean(ifBean);
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case 'Q':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "拨打电话", "请输入电话号码", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass59 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 'R':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "要点击的文字", "请输入文字", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass14 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        EditDialogUtil.getInstance().choseOffSet(MyApp.getContext(), "请确认点击偏移量", 0, 0, new EditDialogUtil.OnOffetListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass14.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnOffetListener
                            public void result(int i, int i2) {
                                detailBean.setOffsetX(i);
                                detailBean.setOffsetY(i2);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        }, true);
                    }
                }, true);
                return;
            case 'S':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "打开网页", "请输入要打开的网址", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass56 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 'T':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "输入文字", "请输入文字", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass34 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), InputDeviceCompat.SOURCE_TOUCHSCREEN, "编辑框序号", "请输入编辑框序号，从1开始", "", new EditDialogUtil.EditMethod() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass34.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setSortNum(MathUtils.parseInt(str));
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        }, true);
                    }
                }, true);
                return;
            case '`':
                this.mDialog.dismiss();
                ToastUtil.warning("请选择要点击的图片！");
                YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass46 */

                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                    public void result(boolean z, Bitmap bitmap) {
                        detailBean.setImgPath(ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID()));
                        EditDialogUtil.getInstance().choseOffSet(MyApp.getContext(), "请确认点击偏移量", 0, 0, new EditDialogUtil.OnOffetListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass46.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnOffetListener
                            public void result(int i, int i2) {
                                detailBean.setOffsetX(i);
                                detailBean.setOffsetY(i2);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        }, true);
                    }
                });
                return;
            case 'g':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "请输入控件ID", "请输入控件ID", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass94 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass94.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "最长等待时间", "请输入时间（秒）", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass94.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setDruation(MathUtils.parseInt(str));
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 'h':
                final String findPackName = ActionAsSDK.getInstance().findPackName();
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "您确定选择当前包名为判断条件吗？", findPackName, 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass102 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        detailBean.setPackName(findPackName);
                        ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                    }
                }, true);
                return;
            case 'n':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "手机播报", "请输入播报内容", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass62 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 'p':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.先拖动选择目标区域;\n\n2.然后拖动选择目标图片;\n\n3.最后输入点击次数;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass45 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("请拖动选择目标所在区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass45.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                            public void result(boolean z, Rect rect) {
                                detailBean.setRect(rect);
                                ToastUtil.warning("请拖动选择目标图片！");
                                if (ChoseActionUtil.this.mHandler == null) {
                                    ChoseActionUtil.this.mHandler = new Handler();
                                }
                                ChoseActionUtil.this.mHandler.post(new Runnable() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass45.AnonymousClass1.AnonymousClass1 */

                                    public void run() {
                                        YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass45.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            @Override
                                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                                            public void result(boolean z, Bitmap bitmap) {
                                                detailBean.setImgPath(ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID()));
                                                EditDialogUtil.getInstance().edit(MyApp.getContext(), InputDeviceCompat.SOURCE_TOUCHSCREEN, "点击次数", "请输入点击次数（-1表示无限循环）", "", new EditDialogUtil.EditMethod() {
                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass45.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                    @Override
                                                    // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                    public void edit(String str) {
                                                        detailBean.setRepeat(MathUtils.parseInt(str));
                                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                                        AutoUtils.addAction(actionBean);
                                                    }
                                                }, true);
                                            }
                                        });
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case 'q':
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                detailBean.setVariableType(itemActionBean.getActionType());
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.输入第一组账号;\n\n2.输入第二组账号;\n\n3.输入第n组账号;\n\n\n注意：所有账号和密码只会保存在本地；\n\n卸载重装后需要重新配置;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass38 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass38.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().showUserNameList(MyApp.getContext(), null, new EditDialogUtil.OnTextUserListListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass38.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnTextUserListListener
                                    public void result(List<TextUserName> list) {
                                        if (list.size() > 0) {
                                            detailBean.setTextUserList(list);
                                            actionBean.setDetail(new Gson().toJson(detailBean));
                                            AutoUtils.addAction(actionBean);
                                            return;
                                        }
                                        ToastUtil.warning("请至少添加一组账号再保存！");
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case 't':
                this.mDialog.dismiss();
                this.mPointBeanList.clear();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.一会屏幕将出现滑动箭头;\n\n2.请自由移动箭头起始点来确定滑动路径;\n\n3.选择完成后，点击确定保存即可", R.drawable.location, new EditDialogUtil.setOnSureListener() {

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ParamUtils.getInstance().addSwipeView(new ParamUtils.OnSwipePlusListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass21.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Method.ParamUtils.OnSwipePlusListener
                            public void result(boolean z, int i, int i2, int i3, int i4) {
                                if (z) {
                                    ChoseActionUtil.this.mPointBeanList.clear();
                                    ChoseActionUtil.this.mPointBeanList.add(new PointBean(i, i2));
                                    ChoseActionUtil.this.mPointBeanList.add(new PointBean(i3, i4));
                                    detailBean.setPointBeanList(ChoseActionUtil.this.mPointBeanList);
                                    actionBean.setDetail(new Gson().toJson(detailBean));
                                    AutoUtils.addAction(actionBean);
                                }
                            }
                        });
                    }
                }, true);
                return;
            case 'v':
                this.mDialog.dismiss();
                ToastUtil.warning("请拖动选择目标图片！");
                YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                    public void result(boolean z, Bitmap bitmap) {
                        detailBean.setImgPath(ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID()));
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "模拟长按时间", "请输入长按时间（最大59秒）", "", new EditDialogUtil.EditMethod() {
                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                int parseInt = MathUtils.parseInt(str);
                                if (parseInt > 59) {
                                    ToastUtil.warning("最大59秒！");
                                    return;
                                }
                                detailBean.setDruation(parseInt);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        }, true);
                    }
                });
                return;
            case 'w':
                detailBean.setAutoID(itemActionBean.getActionDetail());
                actionBean.setDetail(new Gson().toJson(detailBean));
                AutoUtils.addAction(actionBean);
                this.mDialog.dismiss();
                return;
            case '|':
                this.mDialog.dismiss();
                this.mPointBeanList.clear();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.找到如下所示的蓝色瞄准图标;\n\n2.拖动该图标到需要点击的地方;\n\n3.然后长按该图标即可选择;", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass19 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass19.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                            public void result(int i, int i2) {
                                ChoseActionUtil.this.mPointBeanList.add(new PointBean(i, i2));
                                EditDialogUtil.getInstance().showPointList(MyApp.getContext(), false, "请确认同时点击的坐标", ChoseActionUtil.this.mPointBeanList, new EditDialogUtil.OnPointChoseListener() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass19.AnonymousClass1.AnonymousClass1 */

                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnPointChoseListener
                                    public void result(List<PointBean> list) {
                                        if (list.size() >= 2) {
                                            MyApp.mOnActionViewLongClickListener = null;
                                            detailBean.setPointBeanList(list);
                                            EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "执行次数", "请输入执行次数（-1表示无限循环）", "", new EditDialogUtil.EditMethod() {
                                                /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass19.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                @Override
                                                // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                public void edit(String str) {
                                                    detailBean.setRepeat(MathUtils.parseInt(str));
                                                    actionBean.setDetail(new Gson().toJson(detailBean));
                                                    AutoUtils.addAction(actionBean);
                                                }
                                            }, true);
                                            return;
                                        }
                                        ToastUtil.warning("请至少选择2个点后再保存！");
                                    }
                                }, true);
                            }
                        };
                    }
                }, true);
                return;
            case '}':
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "振动时间", "请输入振动时间(毫秒)", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass50 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setValue(MathUtils.parseInt(str));
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 127:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "点击文字", "请输入要点击的文字", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass27 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass27.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "点击第几个", "请输入点击第几个", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass27.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setValue(MathUtils.parseInt(str));
                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                        AutoUtils.addAction(actionBean);
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 128:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.请输入要点击的文字;\n\n2.输入您要等待的最长时间(秒);\n", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass25 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass25.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "点击文字", "请输入要点击的文字", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass25.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setText(str);
                                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass25.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            public void run() {
                                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "最长等待时间", "请输入时间（秒）", "", new EditDialogUtil.EditMethod() {
                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass25.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                    @Override
                                                    // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                    public void edit(String str) {
                                                        detailBean.setDruation(MathUtils.parseInt(str));
                                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                                        AutoUtils.addAction(actionBean);
                                                    }
                                                }, true);
                                            }
                                        });
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 129:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.拖动选择字符串所在范围;\n\n2.输入被包含的字符串;\n\n3.选择条件满足后要执行的动作;\n\n4.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass76 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("选择字符串所在区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass76.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                            public void result(boolean z, Rect rect) {
                                detailBean.setRect(rect);
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "包含的字符串", "请输入包含的字符串", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass76.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setText(str);
                                        ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                        choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "条件：字符串包含(" + str + ")");
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 132:
                final String findActivityName = ActionAsSDK.getInstance().findActivityName();
                this.mDialog.dismiss();
                if (this.mHandler == null) {
                    this.mHandler = new Handler();
                }
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "您确定选择当前页面为判断条件吗？", findActivityName, 0, new EditDialogUtil.setOnSureListener() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        detailBean.setActivityName(findActivityName);
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "最长等待时间", "请输入时间（秒）", "", new EditDialogUtil.EditMethod() {
                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setDruation(MathUtils.parseInt(str));
                                ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                            }
                        }, true);
                    }
                }, true);
                return;
            case 133:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "指定QQ聊天", "请输入QQ号码", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass54 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case 138:
            case Opcodes.OR_LONG /*{ENCODED_INT: 161}*/:
                this.mDialog.dismiss();
                ToastUtil.warning("请拖动选择目标图片！");
                YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                    public void result(boolean z, Bitmap bitmap) {
                        detailBean.setImgPath(ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID()));
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                });
                return;
            case 141:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.拖动以下蓝色图标到要取颜色的地方;\n\n2.长按瞄准图标选择目标颜色;\n\n3.选择条件满足后要执行的动作;\n\n4.选择条件不满足后要执行的动作;", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                            @Override // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                            public void result(final int i, final int i2) {
                                MyApp.mOnActionViewLongClickListener = null;
                                FloatManager.hide(InitFloatBean.FloatType.action);
                                YYScreenCutSDK.getInstance().cutFull(MyApp.getContext(), new YYScreenCutSDK.OnCutListener() {
                                    @Override
                                    // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                                    public void result(boolean z, Bitmap bitmap) {
                                        String colorByXY = YYScreenCutSDK.getColorByXY(bitmap, i, i2, true);
                                        FloatManager.show(InitFloatBean.FloatType.action);
                                        EditDialogUtil.getInstance().choseColor(MyApp.getContext(), "full", "请确认位置和颜色", i, i2, null, colorByXY, new EditDialogUtil.OnColorListener() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass72.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            @Override
                                            // com.lmiot.xyclick.Util.EditDialogUtil.OnColorListener
                                            public void result(IfBeanColor ifBeanColor) {
                                                detailBean.setIfBeanColor(ifBeanColor);
                                                ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                                choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "颜色:" + ifBeanColor.getName());
                                            }
                                        }, true);
                                    }
                                });
                            }
                        };
                    }
                }, true);
                return;
            case 142:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "屏幕亮度", "请输入屏幕亮度（0-100）", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass52 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        int parseInt = MathUtils.parseInt(str);
                        if (parseInt <= 100) {
                            detailBean.setValue(parseInt);
                            actionBean.setDetail(new Gson().toJson(detailBean));
                            AutoUtils.addAction(actionBean);
                            return;
                        }
                        ToastUtil.warning("不能超过100！");
                    }
                }, true);
                return;
            case Opcodes.SUB_INT /*{ENCODED_INT: 145}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "音量大小", "请输入音量大小（0-100）", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass51 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        int parseInt = MathUtils.parseInt(str);
                        if (parseInt <= 100) {
                            detailBean.setValue(parseInt);
                            actionBean.setDetail(new Gson().toJson(detailBean));
                            AutoUtils.addAction(actionBean);
                            return;
                        }
                        ToastUtil.warning("不能超过100！");
                    }
                }, true);
                return;
            case Opcodes.MUL_INT /*{ENCODED_INT: 146}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.点击确定后将会显示所有可见控件;\n\n2.点击任一控件可以查看到具体属性;\n\n3.点击手机返回按钮可以退出;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass93 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        NoteInfoViewSDK.getInstance().chose(MyApp.getContext(), NoteInfoViewSDK.FindViewType.ALL, new NoteInfoViewSDK.OnChoseViewListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass93.AnonymousClass1 */

                            @Override
                            // com.xiaoyi.intentsdklibrary.SDK.FloatView.NoteInfoViewSDK.OnChoseViewListener
                            public void result(ViewBean viewBean, String str) {
                            }
                        });
                    }
                }, true);
                return;
            case Opcodes.DIV_INT /*{ENCODED_INT: 147}*/:
                this.mDialog.dismiss();
                ToastUtil.warning("请拖动选择目标图片！");
                YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass41 */

                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                    public void result(boolean z, Bitmap bitmap) {
                        String saveBitmpToFile = ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID());
                        detailBean.setImgPath(saveBitmpToFile);
                        detailBean.setImgPath(saveBitmpToFile);
                        ToastUtil.warning("请输入图片相似度！");
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), 8194, "设置图片相似度", "1-100%", "60", new EditDialogUtil.EditMethod() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass41.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setRepeat(MathUtils.parseInt(str));
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        }, true);
                    }
                });
                return;
            case Opcodes.AND_INT /*{ENCODED_INT: 149}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.选择要执行的动作;\n\n2.输入要for循环的次数;\n\n3.选择中断的条件;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass82 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionSecondUtil.getInstance().choseSecondActon("选择要执行的动作", new ChoseActionSecondUtil.OnChoseActionListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass82.AnonymousClass1 */

                            @Override
                            // com.lmiot.xyclick.Method.ChoseActionSecondUtil.OnChoseActionListener
                            public void result(ActionBean actionBean) {
                                detailBean.setDoActonBean(actionBean);
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "执行次数", "请输入执行次数（-1表示无限循环）", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass82.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setRepeat(MathUtils.parseInt(str));
                                        ChoseActionIFUtil.getInstance().showChoseDialog("选择中断的条件", new ChoseActionIFUtil.OnChoseIfBeanListener() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass82.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            @Override
                                            // com.lmiot.xyclick.Method.ChoseActionIFUtil.OnChoseIfBeanListener
                                            public void result(IfBean ifBean) {
                                                detailBean.setBreakIfBean(ifBean);
                                                actionBean.setDetail(new Gson().toJson(detailBean));
                                                AutoUtils.addAction(actionBean);
                                            }
                                        });
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 150:
                PointBean pointBean9 = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
                this.mPointBean = pointBean9;
                detailBean.setPointBean(pointBean9);
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "模拟长按时间", "请输入长按时间（最大59000毫秒）", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass17 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        int parseInt = MathUtils.parseInt(str);
                        if (parseInt > 59000) {
                            ToastUtil.warning("最大59000毫秒！");
                            return;
                        }
                        detailBean.setDruation(parseInt);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                break;
            case 156:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.拖动选择判断的目标区域;\n\n2.拖动以下蓝色图标到要取颜色的地方;\n\n3.长按瞄准图标选择目标颜色;\n\n4.选择条件满足后要执行的动作;\n\n5.选择条件不满足后要执行的动作;", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass74 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("拖动选择判断的目标区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass74.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                            public void result(boolean z, Rect rect) {
                                EditDialogUtil.getInstance().choseColorList(MyApp.getContext(), rect, null, new EditDialogUtil.OnColorListener() {
                                    @Override
                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnColorListener
                                    public void result(IfBeanColor ifBeanColor) {
                                        detailBean.setIfBeanColor(ifBeanColor);
                                        ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                        choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "颜色:" + ifBeanColor.getName());
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case 157:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.拖动选择判断的目标区域;\n\n2.拖动以下蓝色图标到要取颜色的地方;\n\n3.长按瞄准图标选择目标颜色;\n\n4.选择条件满足后要执行的动作;\n\n5.选择条件不满足后要执行的动作;", R.drawable.location, new EditDialogUtil.setOnSureListener() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("拖动选择判断的目标区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass73.AnonymousClass1 */

                            @Override
                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
                            public void result(boolean z, final Rect rect) {
                                ToastUtil.info("拖动瞄准图标，然后长按！");
                                MyApp.mOnActionViewLongClickListener = new MyApp.OnActionViewLongClickListener() {
                                    @Override
                                    // com.lmiot.xyclick.App.MyApp.OnActionViewLongClickListener
                                    public void result(final int i, final int i2) {
                                        MyApp.mOnActionViewLongClickListener = null;
                                        FloatManager.hide(InitFloatBean.FloatType.action);
                                        YYScreenCutSDK.getInstance().cutFull(MyApp.getContext(), new YYScreenCutSDK.OnCutListener() {
                                            @Override
                                            // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                                            public void result(boolean z, Bitmap bitmap) {
                                                String colorByXY = YYScreenCutSDK.getColorByXY(bitmap, i, i2, true);
                                                FloatManager.show(InitFloatBean.FloatType.action);
                                                EditDialogUtil.getInstance().choseColor(MyApp.getContext(), "rect", "请确认位置和颜色", i, i2, rect, colorByXY, new EditDialogUtil.OnColorListener() {
                                                    @Override
                                                    // com.lmiot.xyclick.Util.EditDialogUtil.OnColorListener
                                                    public void result(IfBeanColor ifBeanColor) {
                                                        detailBean.setIfBeanColor(ifBeanColor);
                                                        ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                                        choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "颜色:" + ifBeanColor.getName());
                                                    }
                                                }, true);
                                            }
                                        });
                                    }
                                };
                            }
                        });
                    }
                }, true);
                return;
            case Opcodes.REM_LONG /*{ENCODED_INT: 159}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sendMsg(MyApp.getContext(), detailBean.getText(), detailBean.getMsg(), new EditDialogUtil.OnMsgChangeListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass60 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.OnMsgChangeListener
                    public void result(String str, String str2) {
                        detailBean.setText(str);
                        detailBean.setMsg(str2);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                });
                return;
            case Opcodes.XOR_LONG /*{ENCODED_INT: 162}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.请输入控件ID;\n\n2.如果有相同ID，输入点击第几个;\n\n", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass88 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass88.AnonymousClass1 */

                            public void run() {
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "请输入控件ID", "请输入控件ID", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass88.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setText(str);
                                        ChoseActionUtil.this.mHandler.post(new Runnable() {
                                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass88.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                            public void run() {
                                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 2, "点击第几个", "请输入点击第几个", "1", new EditDialogUtil.EditMethod() {
                                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass88.AnonymousClass1.AnonymousClass1.AnonymousClass1.AnonymousClass1 */

                                                    @Override
                                                    // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                                    public void edit(String str) {
                                                        detailBean.setValue(MathUtils.parseInt(str));
                                                        actionBean.setDetail(new Gson().toJson(detailBean));
                                                        AutoUtils.addAction(actionBean);
                                                    }
                                                }, true);
                                            }
                                        });
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case Opcodes.DIV_FLOAT /*{ENCODED_INT: 169}*/:
                this.mDialog.dismiss();
                YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                    @Override
                    public void result(boolean z, Rect rect) {
                        detailBean.setRect(rect);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                });
                return;
            case Opcodes.REM_FLOAT /*{ENCODED_INT: 170}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.拖动选择字符串所在范围;\n\n2.输入字符串结尾的字符;\n\n3.选择条件满足后要执行的动作;\n\n4.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass78 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        ToastUtil.warning("选择字符串所在区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass78.AnonymousClass1 */

                            @Override
                            public void result(boolean z, Rect rect) {
                                detailBean.setRect(rect);
                                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "结尾字符串", "请输入结尾字符串", "", new EditDialogUtil.EditMethod() {
                                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass78.AnonymousClass1.AnonymousClass1 */

                                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                                    public void edit(String str) {
                                        detailBean.setText(str);
                                        ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                        choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "条件：字符串以(" + str + ")结尾");
                                    }
                                }, true);
                            }
                        });
                    }
                }, true);
                return;
            case Opcodes.DIV_DOUBLE /*{ENCODED_INT: 174}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "操作说明", "1.请选择要判断的区域;\n\n2.请选择要判断的图片;\n\n3.选择条件满足后要执行的动作;\n\n4.选择条件不满足后要执行的动作;", 0, new EditDialogUtil.setOnSureListener() {
                    @Override
                    public void sureClick(boolean z) {
                        ToastUtil.warning("请选择要图片所在区域！");
                        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
                            @Override
                            public void result(boolean z, Rect rect) {
                                detailBean.setRect(rect);
                                ToastUtil.warning("请选择目标图片！");
                                ChoseActionUtil.this.postHandler.post(new Runnable() {
                                    public void run() {
                                        YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                                            @Override
                                            public void result(boolean z, Bitmap bitmap) {
                                                String saveBitmpToFile = ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID());
                                                detailBean.setImgPath(saveBitmpToFile);
                                                ChoseActionUtil choseActionUtil = ChoseActionUtil.this;
                                                choseActionUtil.choseIfAndElseAction(detailBean, actionBean, "图片：" + saveBitmpToFile + "(区域)");
                                            }
                                        });
                                    }
                                });
                            }
                        });
                    }
                }, true);
                return;
            case Opcodes.ADD_INT_2ADDR /*{ENCODED_INT: 176}*/:
                break;
            case Opcodes.SUB_INT_2ADDR /*{ENCODED_INT: 177}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "微信小程序", "请输入微信小程序ID", "", new EditDialogUtil.EditMethod() {
                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case Opcodes.MUL_INT_2ADDR /*{ENCODED_INT: 178}*/:
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().edit(MyApp.getContext(), 1, "打开URL Scheme", "请输入要打开的URL Scheme", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass57 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setText(str);
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
                return;
            case Opcodes.DIV_INT_2ADDR /*{ENCODED_INT: 179}*/:
                final String findActivityName2 = ActionAsSDK.getInstance().findActivityName();
                this.mDialog.dismiss();
                EditDialogUtil.getInstance().sureDialog(MyApp.getContext(), "您确定选择当前页面为判断条件吗？", findActivityName2, 0, new EditDialogUtil.setOnSureListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass103 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.setOnSureListener
                    public void sureClick(boolean z) {
                        detailBean.setActivityName(findActivityName2);
                        ChoseActionUtil.this.choseIfAndElseAction(detailBean, actionBean, "");
                    }
                }, true);
                return;
            case 180:
                this.mDialog.dismiss();
                ToastUtil.warning("请拖动选择目标图片！");
                YYScreenCutSDK.getInstance().cutRect(MyApp.getContext(), null, new YYScreenCutSDK.OnCutListener() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass44 */

                    @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnCutListener
                    public void result(boolean z, Bitmap bitmap) {
                        detailBean.setImgPath(ImgUtil.saveBitmpToFile(bitmap, TimeUtils.createID()));
                        EditDialogUtil.getInstance().edit(MyApp.getContext(), InputDeviceCompat.SOURCE_TOUCHSCREEN, "点击次数", "请输入点击次数（-1表示无限循环）", "", new EditDialogUtil.EditMethod() {
                            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass44.AnonymousClass1 */

                            @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                            public void edit(String str) {
                                detailBean.setRepeat(MathUtils.parseInt(str));
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        }, true);
                    }
                });
                return;
            default:
                return;
        }
        PointBean pointBean10 = new PointBean((int) FloatUtil.getFloatX(MyApp.getContext(), "actionView"), (int) FloatUtil.getFloatY(MyApp.getContext(), "actionView"));
        this.mPointBean = pointBean10;
        detailBean.setPointBean(pointBean10);
        this.mDialog.dismiss();
        YYScreenCutSDK.getInstance().getRectData(MyApp.getContext(), null, new YYScreenCutSDK.OnRectListener() {
            @Override // com.youyi.yyscreencutlibrary.SDK.YYScreenCutSDK.OnRectListener
            public void result(boolean z, Rect rect) {
                detailBean.setRect(rect);
                EditDialogUtil.getInstance().edit(MyApp.getContext(), InputDeviceCompat.SOURCE_TOUCHSCREEN, "执行次数", "请输入执行次数（-1表示无限循环）", "", new EditDialogUtil.EditMethod() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass18.AnonymousClass1 */

                    @Override // com.lmiot.xyclick.Util.EditDialogUtil.EditMethod
                    public void edit(String str) {
                        detailBean.setRepeat(MathUtils.parseInt(str));
                        actionBean.setDetail(new Gson().toJson(detailBean));
                        AutoUtils.addAction(actionBean);
                    }
                }, true);
            }
        });
    }

    /* access modifiers changed from: private */
    /* access modifiers changed from: public */
    private void choseIfAndElseAction(final DetailBean detailBean, final ActionBean actionBean, String str) {
        ChoseActionSecondUtil.getInstance().choseSecondActon("(第一层)选择条件满足后要执行的动作", new ChoseActionSecondUtil.OnChoseActionListener() {
            /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass105 */

            @Override // com.lmiot.xyclick.Method.ChoseActionSecondUtil.OnChoseActionListener
            public void result(ActionBean actionBean) {
                detailBean.setIFActionBean(actionBean);
                if (ChoseActionUtil.this.mHandler == null) {
                    ChoseActionUtil.this.mHandler = new Handler();
                }
                ChoseActionUtil.this.mHandler.post(new Runnable() {
                    /* class com.lmiot.xyclick.Method.ChoseActionUtil.AnonymousClass105.AnonymousClass1 */

                    public void run() {
                        ChoseActionSecondUtil.getInstance().choseSecondActon("(第一层)选择条件不满足后要执行的动作", new ChoseActionSecondUtil.OnChoseActionListener() {
                            @Override
                            // com.lmiot.xyclick.Method.ChoseActionSecondUtil.OnChoseActionListener
                            public void result(ActionBean actionBean) {
                                detailBean.setElseActionBean(actionBean);
                                actionBean.setDetail(new Gson().toJson(detailBean));
                                AutoUtils.addAction(actionBean);
                            }
                        });
                    }
                });
            }
        });
    }

    private int getDelayTime(int i) {
        return i * (FloatUtil.getAutoMs(MyApp.getContext()) ? 1000 : 1);
    }
}
